Package uicc.access
Class UICCSystem
java.lang.Object
uicc.access.UICCSystem
The
UICCSystem class provides a way to get a view of an UICC File system.
The FileView objects returned by the methods of this class are permanent JCRE
Entry Point Objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic FileViewgetTheFileView(byte[] buffer, short bOffset, byte bLength, byte event) Method to get a reference to a FileView object on an ADF file system.static FileViewgetTheFileView(javacard.framework.AID aid, byte event) Method to get a reference to a FileView object on an ADF file system.static FileViewgetTheUICCView(byte event) Method to get a reference to a FileView object on the UICC file system The FileView object will only allow access to the files specified under the MF of the UICC.
-
Method Details
-
getTheUICCView
Method to get a reference to a FileView object on the UICC file system The FileView 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 FileView object. After a succesful 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:
event- defining the transient type of the file context associated with the FileView 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 FileView interface
- Throws:
javacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif event is not a valid event code.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.
-
getTheFileView
public static FileView getTheFileView(javacard.framework.AID aid, byte event) throws NullPointerException, javacard.framework.SystemException Method to get a reference to a FileView object on an ADF file system. The FileView 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 succesful 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:
event- defining the transient type of the file context associated with the FileView object the following values are allowed JCSystem.NOT_A_TRANSIENT_OBJECT JCSystem.CLEAR_ON_RESET JCSystem.CLEAR_ON_DESELECTaid- AID of the requested ADF- Returns:
- a reference to a class which implements the FileView interface
- Throws:
NullPointerException- ifbufferisnulljavacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif event is not a valid event code.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.
-
getTheFileView
public static FileView getTheFileView(byte[] buffer, short bOffset, byte bLength, byte event) throws NullPointerException, ArrayIndexOutOfBoundsException, javacard.framework.SystemException Method to get a reference to a FileView object on an ADF file system.
The FileView 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 succesful 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
Notes:
- If
bOffsetorbLengthis negative anArrayIndexOutOfBoundsExceptionexception is thrown. - If
bOffset+bLengthis greater thanbuffer.length, the length of thebufferarray anArrayIndexOutOfBoundsExceptionexception is thrown.
- Parameters:
buffer- array holding the AIDbOffset- offset into the buffer indicating the start of the AIDbLength- length into the buffer of the AIDevent- defining the transient type of the file context associated with the FileView object the following values are allowed JCSystem.NOT_A_TRANSIENT_OBJECT JCSystem.CLEAR_ON_RESET JCSystem.CLEAR_ON_DESELEC- Returns:
- a reference to an object which implements the FileView interface, or null.
- Throws:
NullPointerException- ifbufferisnullArrayIndexOutOfBoundsException- in case of access outside array boundsjavacard.framework.SystemException- with the following reason codes:SystemException.ILLEGAL_VALUEif event is not a valid event code 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
-