public interface AdminFileView extends FileView
AdminFileView interface defines the administrative methods to access a UICC file system server.
AdminFileView are atomic.
The AdminFileView operations are subject to atomic
commit capacity limitations. If the commit capacity is exceeded, no operation is performed and a
TransactionException exception is thrown.AdminFileViewBuilder| Modifier and Type | Method and Description |
|---|---|
void |
createFile(ViewHandler viewHandler)
This method creates a new file under the current DF or ADF, as described in TS 102 222.
|
void |
deleteFile(short fid)
This method initiates the deletion of an EF immediately under the current DF, or a DF with its complete
subtree, as described in TS 102 222.
|
void |
resizeFile(ViewHandler viewHandler)
This method resizes a file under the current DF or ADF, as described in TS 102 222.
|
activateFile, deactivateFile, increase, readBinary, readRecord, searchRecord, select, select, select, status, updateBinary, updateRecordvoid deleteFile(short fid)
throws UICCException,
javacard.framework.TransactionException
fid - is the File Identifier of the file to be deleted.UICCException - in case of errorFILE_NOT_FOUND
MEMORY_PROBLEM
INTERNAL_ERROR
SECURITY_STATUS_NOT_SATISFIED
javacard.framework.TransactionException - if the operation would cause the commit capacity to be exceeded.void createFile(ViewHandler viewHandler) throws java.lang.NullPointerException, UICCException, AdminException, javacard.framework.TransactionException
viewHandler - ViewHandler object containing the value part of the FCP data object for the CREATE FILE command, as described in TS 102 222.java.lang.NullPointerException - if viewHandler is nullUICCException - in case of errorMEMORY_PROBLEM
INTERNAL_ERROR
SECURITY_STATUS_NOT_SATISFIED
COMMAND_NOT_ALLOWED if the referenced file is terminated
AdminException - in case of errorFILE_ALREADY_EXISTS
INCORRECT_PARAMETERS
NOT_ENOUGH_MEMORY_SPACE
DF_NAME_ALREADY_EXISTS
javacard.framework.TransactionException - if the operation would cause the commit capacity to be exceeded.void resizeFile(ViewHandler viewHandler) throws java.lang.NullPointerException, UICCException, AdminException, javacard.framework.TransactionException
viewHandler - ViewHandler object containing the value part of the FCP data object for the RESIZE command, as described in TS 102 222.java.lang.NullPointerException - if viewHandler is nullUICCException - in case of errorMEMORY_PROBLEM
COMMAND_INCOMPATIBLE
SECURITY_STATUS_NOT_SATISFIED
REF_DATA_INVALIDATED
FILE_NOT_FOUND
INTERNAL_ERROR
COMMAND_NOT_ALLOWED if the referenced file is terminated
AdminException - in case of errorCONDITIONS_OF_USE_NOT_SATISFIED
NOT_ENOUGH_MEMORY_SPACE
INCORRECT_PARAMETERS
javacard.framework.TransactionException - if the operation would cause the commit capacity to be exceeded.