Package uicc.access.fileadministration
Class AdminFileViewBuilder
java.lang.Object
uicc.access.fileadministration.AdminFileViewBuilder
The
AdminFileViewBuilder class provides a way to get a administrative view of a UICC File system server.
The AdminFileView objects returned by the methods of this class are permanent JCRE
Entry Point Objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic AdminFileViewgetTheAdminFileView(byte[] buffer, short bOffset, byte bLength, byte bType) Method to get a reference to a AdminFileView object on an ADF file system server.static AdminFileViewgetTheAdminFileView(javacard.framework.AID aid, byte bType) Method to get a reference to a AdminFileView object on an ADF file system server.static AdminFileViewgetTheUICCAdminFileView(byte bType) Method to get a reference to a AdminFileView object on the UICC file system server.
-
Method Details
-
getTheUICCAdminFileView
public static AdminFileView getTheUICCAdminFileView(byte bType) throws javacard.framework.SystemException Method to get a reference to a AdminFileView object on the UICC file system server. The AdminFileView object will only allow access to the Files specified under the MF of the UICC. It is not possible to get access to files which are located under any ADF with this AdminFileView object. After a successful invocation of the method the MF is the current selected file. This method returnnullif theApplet.register()has not yet been invoked, or the filesystem server returnsnull- Parameters:
bType- defining the type of the file context associated with the AdminFileView object the following values are allowed JCSystem.NOT_A_TRANSIENT_OBJECT JCSystem.CLEAR_ON_RESET JCSystem.CLEAR_ON_DESELECT- Returns:
- a reference to a class which implements the AdminFileView interface
- Throws:
javacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif bType is not a valid value.SystemException.NO_TRANSIENT_SPACEif sufficient transient space is not available.SystemException.ILLEGAL_TRANSIENTif the current applet context is not the currently selected applet context andCLEAR_ON_DESELECTis specified.
-
getTheAdminFileView
public static AdminFileView getTheAdminFileView(javacard.framework.AID aid, byte bType) throws NullPointerException, javacard.framework.SystemException Method to get a reference to a AdminFileView object on an ADF file system server. The AdminFileView object will only allow access to Files under the ADF specified by the AID. It is not possible to access files which are not located under the ADF. After a successful invocation of the method the ADF is the currently selected file. This method returnnullif theApplet.register()has not yet been invoked, or the filesystem server does not exist or the filesystem server returnsnull- Parameters:
bType- defining the type of the file context associated with the AdminFileView object the following values are allowed JCSystem.NOT_A_TRANSIENT_OBJECT JCSystem.CLEAR_ON_RESET JCSystem.CLEAR_ON_DESELECTaid- Description of the Parameter- Returns:
- a reference to a class which implements the AdminFileView interface
- Throws:
NullPointerException- ifbufferisnulljavacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif bType is not a valid value.SystemException.NO_TRANSIENT_SPACEif sufficient transient space is not available.SystemException.ILLEGAL_TRANSIENTif the current applet context is not the currently selected applet context andCLEAR_ON_DESELECTis specified.
-
getTheAdminFileView
public static AdminFileView getTheAdminFileView(byte[] buffer, short bOffset, byte bLength, byte bType) throws NullPointerException, ArrayIndexOutOfBoundsException, javacard.framework.SystemException Method to get a reference to a AdminFileView object on an ADF file system server. The AdminFileView object will only allow access to Files under the ADF specified by the AID. It is not possible to access files which are not located under the ADF. After a successful invocation of the method the ADF is the currently selected file. This method returnnullif theApplet.register()has not yet been invoked, or the filesystem server does not exist or the filesystem server returnsnullNotes:
- If
bOffsetorbLengthis negative anArrayIndexOutOfBoundsExceptionexception is thrown. - If
bOffset+bLengthis greater thanbuffer.length, the length of thebufferarray anArrayIndexOutOfBoundsExceptionexception is thrown.
- Parameters:
buffer- thats holds the AIDbOffset- offset into the buffer indicating the start of the AIDbType- defining the type of the file context associated with the AdminFileView object the following values are allowed JCSystem.NOT_A_TRANSIENT_OBJECT JCSystem.CLEAR_ON_RESET JCSystem.CLEAR_ON_DESELECTbLength- the length of the AID bytes in buffer- Returns:
- a reference to an object which implements the AdminFileView interface
- Throws:
NullPointerException- ifbufferisnullArrayIndexOutOfBoundsException- in case of access outside array boundsjavacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif bType is not a valid value orbLengthis not in the range of 5 - 16 bytes.SystemException.NO_TRANSIENT_SPACEif sufficient transient space is not available.SystemException.ILLEGAL_TRANSIENTif the current applet context is not the currently selected applet context andCLEAR_ON_DESELECTis specified.
- If
-