public final class SvDebitCmdBuild extends AbstractPoCommandBuilder<SvDebitRespPars>
Note: SvDebitCmdBuild and SvUndebitCmdBuild shares the same parser SvDebitRespPars
| Constructor and Description |
|---|
SvDebitCmdBuild(PoClass poClass,
PoRevision poRevision,
int amount,
byte kvc,
byte[] date,
byte[] time)
Instantiates a new SvDebitCmdBuild.
|
| Modifier and Type | Method and Description |
|---|---|
SvDebitRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
void |
finalizeBuilder(byte[] debitComplementaryData)
Complete the construction of the APDU to be sent to the PO with the elements received from the
SAM:
|
byte[] |
getSvDebitData()
Gets the SV Debit part of the data to include in the SAM SV Prepare Debit command
|
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic SvDebitCmdBuild(PoClass poClass, PoRevision poRevision, int amount, byte kvc, byte[] date, byte[] time)
poClass - indicates which CLA byte should be used for the ApdupoRevision - the PO revisionamount - amount to debit (positive integer from 0 to 32767)kvc - the KVCdate - debit date (not checked by the PO)time - debit time (not checked by the PO)java.lang.IllegalArgumentException - - if the command is inconsistentpublic void finalizeBuilder(byte[] debitComplementaryData)
4-byte SAM id
3-byte challenge
3-byte transaction number
5 or 10 byte signature (hi part)
debitComplementaryData - the data out from the SvPrepareDebit SAM commandpublic byte[] getSvDebitData()
public SvDebitRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<SvDebitRespPars>apduResponse - the response data from the the cardAbstractApduResponseParserpublic boolean isSessionBufferUsed()
Allows the management of the overflow of this buffer.
This command modified the contents of the PO and therefore uses the session buffer.
isSessionBufferUsed in class AbstractPoCommandBuilder<SvDebitRespPars>