public class CardCipherPinCmdBuild extends AbstractSamCommandBuilder<CardCipherPinRespPars>
defaultRevision| Constructor and Description |
|---|
CardCipherPinCmdBuild(SamRevision revision,
KeyReference cipheringKey,
byte[] currentPin,
byte[] newPin)
Instantiates a new CardCipherPinCmdBuild and generate the ciphered data for a Verify PIN or
Change PIN PO command.
|
| Modifier and Type | Method and Description |
|---|---|
CardCipherPinRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
getCommandRefsetApduRequestpublic CardCipherPinCmdBuild(SamRevision revision, KeyReference cipheringKey, byte[] currentPin, byte[] newPin)
In the case of a PIN verification, only the current PIN must be provided (newPin must be set to null).
In the case of a PIN update, the current and new PINs must be provided.
revision - of the SAMcipheringKey - the key used to encipher the PIN datacurrentPin - the current PIN (a 4-byte byte array)newPin - the new PIN (a 4-byte byte array if the operation in progress is a PIN update,
null if the operation in progress is a PIN verification)public CardCipherPinRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractSamCommandBuilder<CardCipherPinRespPars>apduResponse - the response data from the the cardAbstractApduResponseParser