public final class GetDataFciRespPars extends AbstractPoResponseParser
Provides getter methods for all relevant information.
| Constructor and Description |
|---|
GetDataFciRespPars(org.eclipse.keyple.core.card.message.ApduResponse response,
GetDataFciCmdBuild builder)
Instantiates a new GetDataFciRespPars from the ApduResponse to a selection application command.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getApplicationSerialNumber()
Gets the application serial number
|
byte[] |
getDfName()
Gets the DF name
|
byte[] |
getDiscretionaryData()
Gets the discretionary data
|
protected java.util.Map<java.lang.Integer,org.eclipse.keyple.core.card.command.AbstractApduResponseParser.StatusProperties> |
getStatusTable() |
boolean |
isDfInvalidated()
Tells if the DF is invalidated
|
boolean |
isValidCalypsoFCI()
Tells if the FCI is valid
|
buildCommandException, checkStatus, getBuilderpublic GetDataFciRespPars(org.eclipse.keyple.core.card.message.ApduResponse response,
GetDataFciCmdBuild builder)
The expected FCI structure of a Calypso PO follows this scheme:
T=6F L=XX (C) FCI Template
T=84 L=XX (P) DF Name
T=A5 L=22 (C) FCI Proprietary Template
T=BF0C L=19 (C) FCI Issuer Discretionary Data
T=C7 L=8 (P) Application Serial Number
T=53 L=7 (P) Discretionary Data (Startup Information)
The ApduResponse provided in argument is parsed according to the above expected structure.
DF Name, Application Serial Number and Startup Information are extracted.
The 7-byte startup information field is also split into 7 private field made available through dedicated getter methods.
All fields are pre-initialized to handle the case where the parsing fails.
response - the select application response from Get Data APDU commandbuilder - the reference to the builder that created this parserprotected java.util.Map<java.lang.Integer,org.eclipse.keyple.core.card.command.AbstractApduResponseParser.StatusProperties> getStatusTable()
getStatusTable in class org.eclipse.keyple.core.card.command.AbstractApduResponseParserpublic boolean isValidCalypsoFCI()
public byte[] getDfName()
public byte[] getApplicationSerialNumber()
public byte[] getDiscretionaryData()
public boolean isDfInvalidated()