Class DataUnitAPDU
Adapter class to decode APDUs for data unit handling
Defined in: DataUnitAPDU.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DataUnitAPDU(apdu)
Create an adapter to decode a APDU for data unit handling
|
Method Attributes | Method Name and Description |
---|---|
getCData()
Get the command data
|
|
getFID()
Gets the file identifier, if one defined
|
|
Gets the offset
|
|
getSFI()
Gets the short file identifier, if one defined
|
|
hasCData()
Returns true if command data in contained in the APDU
|
|
<static> |
DataUnitAPDU.test()
Simple Unit Test
|
Class Detail
DataUnitAPDU(apdu)
Create an adapter to decode a APDU for data unit handling
- Parameters:
- {APDU} apdu
- the APDU to decode
Method Detail
{ByteString}
getCData()
Get the command data
- Returns:
- the command data
{ByteString}
getFID()
Gets the file identifier, if one defined
- Returns:
- the file identifier or null if not defined
{Number}
getOffset()
Gets the offset
- Returns:
- the offset to read from or write to
{Number}
getSFI()
Gets the short file identifier, if one defined
- Returns:
- the short file identifier in the range 1 to 30 or -1 if not defined
{boolean}
hasCData()
Returns true if command data in contained in the APDU
- Returns:
- true if command data contained
<static>
DataUnitAPDU.test()
Simple Unit Test