public interface BERTLVFileView extends FileView
BERTLVFileView interface defines the methods to access BER TLV files.
| Modifier and Type | Method and Description |
|---|---|
void |
deleteData(int tag)
This method deletes a data object in the current BER-TLV structure EF.
|
int |
getTAGList(byte mode,
int[] responseBuffer,
short responseOffset,
short responseLength)
This method gets the list of TAGs already allocated in the current BER-TLV structure EF.
|
int |
retrieveData(int tag,
int dataObjectOffset,
byte[] responseBuffer,
short responseOffset,
short responseLength)
This method retrieves a part of a data object from the current BER-TLV structure EF.
|
int |
setData(int tag,
byte mode,
int dataLength,
byte[] data,
short offset,
short length)
This method sets a data object in the current BER-TLV structure EF.
|
activateFile, deactivateFile, increase, readBinary, readRecord, searchRecord, select, select, select, status, updateBinary, updateRecordint retrieveData(int tag,
int dataObjectOffset,
byte[] responseBuffer,
short responseOffset,
short responseLength)
Notes:
responseBuffer
responseOffset or responseLength parameter
is negative an ArrayIndexOutOfBoundsException exception is thrown.
responseOffset+responseLength is greater than responseBuffer.length, the length
of the responseBuffer array a ArrayIndexOutOfBoundsException exception is thrown
and no read is performed.
tag value is invalid or is equal to '5C', an
UICCException with reason code
INVALID_TAG_VALUE is thrown
tag - is the TAG value of TLV object that shall be retrieved.dataObjectOffset - is the offset in the data object.responseBuffer - is the reference to the response byte array for read data.responseOffset - is the offset in the response byte array.responseLength - is the number of bytes to read.java.lang.NullPointerException - if responseBuffer is nulljava.lang.ArrayIndexOutOfBoundsException - if reading would cause access of data outside array boundsUICCException - in case of error INTERNAL_ERROR
COMMAND_INCOMPATIBLE
SECURITY_STATUS_NOT_SATISFIED
REF_DATA_INVALIDATED
NO_EF_SELECTED
REFERENCED_DATA_NOT_FOUND
CONDITIONS_OF_USE_NOT_SATISFIED
OUT_OF_DATA_BOUNDARIES
INVALID_TAG_VALUEint getTAGList(byte mode,
int[] responseBuffer,
short responseOffset,
short responseLength)
Notes:
responseOffset or responseLength parameter
is negative an ArrayIndexOutOfBoundsException exception is thrown.
responseOffset+responseLength is greater than responseBuffer.length, the length
of the responseBuffer array a ArrayIndexOutOfBoundsException exception is thrown
and no operation is performed.
mode - is the mode to be used (UICCConstants.BER_TLV_ACC_MODE_FIRST or UICCConstants.BER_TLV_ACC_MODE_NEXT)responseBuffer - is the reference to the response int array for read data.
Each component of the responseBufferarray contains a single TAG.responseOffset - is the offset in the response int array.responseLength - is the number of TAGs to read.java.lang.NullPointerException - if responseBuffer is nulljava.lang.ArrayIndexOutOfBoundsException - if reading would cause access of data outside array boundsUICCException - in case of error INTERNAL_ERROR
COMMAND_INCOMPATIBLE
SECURITY_STATUS_NOT_SATISFIED
REF_DATA_INVALIDATED
NO_EF_SELECTED
INVALID_MODE
CONDITIONS_OF_USE_NOT_SATISFIED
OUT_OF_DATA_BOUNDARIESint setData(int tag,
byte mode,
int dataLength,
byte[] data,
short offset,
short length)
Notes:
offset or length parameter
is negative an ArrayIndexOutOfBoundsException exception is thrown.
offset+length is greater than data.length, the length
of the data array a ArrayIndexOutOfBoundsException exception is thrown
and no update is performed.
mode is BER_TLV_ACC_MODE_FIRST and dataLength is equal to 0, a zero length object is created.
tag value is invalid or is equal to '5C', an
UICCException with reason code
INVALID_TAG_VALUE is thrown
tag - is the TAG value of TLV object that shall be set. The value is not significant if
code>mode parameter is set to UICCConstants.BER_TLV_ACC_MODE_NEXT.mode - is the mode to be used (UICCConstants.BER_TLV_ACC_MODE_FIRST or UICCConstants.BER_TLV_ACC_MODE_NEXT)dataLength - is the length of the value field of the BER-TLV data object. The value is not significant if
mode parameter is set to UICCConstants.BER_TLV_ACC_MODE_NEXT.data - is the reference to the data byte array.offset - is the offset in the data byte array.length - is the number of bytes to set.java.lang.NullPointerException - if responseBuffer is nulljava.lang.ArrayIndexOutOfBoundsException - if reading would cause access of data outside array boundsUICCException - in case of error INTERNAL_ERROR
COMMAND_INCOMPATIBLE
SECURITY_STATUS_NOT_SATISFIED
NO_EF_SELECTED
INVALID_MODE
MEMORY_PROBLEM
REFERENCED_DATA_NOT_FOUND
NOT_ENOUGH_MEMORY_SPACE
CONDITIONS_OF_USE_NOT_SATISFIED
OUT_OF_DATA_BOUNDARIES
INVALID_TAG_VALUE void deleteData(int tag)
Notes:
tag value is invalid or is equal to '5C', an
UICCException with reason code
INVALID_TAG_VALUE is thrown
tag - is the TAG value of TLV object that shall be deleted.UICCException - in case of error INTERNAL_ERROR
COMMAND_INCOMPATIBLE
SECURITY_STATUS_NOT_SATISFIED
REFERENCED_DATA_NOT_FOUND
CONDITIONS_OF_USE_NOT_SATISFIED
NO_EF_SELECTED
INVALID_TAG_VALUE