com.ibm.opencard.isofs
Interface MFCFileSystemImpl
- All Known Implementing Classes:
- MFC35FileSystemImpl
- public abstract interface MFCFileSystemImpl
An interface to a file system service implementation.
A file system service provides creational access to smartcard
files, for example CREATE, DELETE, or INVALIDATE. The implementation
of such a service is responsible for creating command APDUs and
evaluating the smartcard's response APDUs.
- Version:
- $Id: MFCFileSystemImpl.java,v 1.1 1999/12/02 16:06:05 damke Exp $
createFile
public void createFile(MFCCardChannel channel,
byte[] header)
throws CardServiceException,
CardTerminalException
- Creates a file on the smartcard.
The directory in which the file should be created has to be
selected. The file itself may be an elementary or dedicated
file. All information required to create the file is encoded
in that header. The encoding is card-specific.
- Parameters:
channel - the contact to the smartcardheader - the header of the file to create- Throws:
- CardServiceException - if the service encountered an error
- CardTerminalException - if the terminal encountered an error
deleteFile
public void deleteFile(MFCCardChannel channel,
short file)
throws CardServiceException,
CardTerminalException
- Deletes a file on the smartcard.
The parent directory of the file to delete has to be selected.
The file itself may be an elementary or dedicated file. The
smartcard's restrictions for deleting files apply.
- Parameters:
channel - the contact to the smartcardfile - the identifier of the file to delete- Throws:
- CardServiceException - if the service encountered an error
- CardTerminalException - if the terminal encountered an error
invalidateFile
public void invalidateFile(MFCCardChannel channel)
throws CardServiceException,
CardTerminalException
- Invalidates a file on the smartcard.
The file to be invalidated has to be selected.
The file itself may be a dedicated or elementary file.
- Parameters:
channel - the contact to the smartcard- Throws:
- CardServiceException - if the service encountered an error
- CardTerminalException - if the terminal encountered an error
rehabilitateFile
public void rehabilitateFile(MFCCardChannel channel)
throws CardServiceException,
CardTerminalException
- Rehabilitates a file on the smartcard.
The file to be rehabilitated has to be selected.
The file itself may be a dedicated or elementary file.
- Parameters:
channel - the contact to the smartcard- Throws:
- CardServiceException - if the service encountered an error
- CardTerminalException - if the terminal encountered an error
|