public final class OpenSession31CmdBuild extends AbstractOpenSessionCmdBuild<AbstractOpenSessionRespPars>
| Constructor and Description |
|---|
OpenSession31CmdBuild(byte keyIndex,
byte[] samChallenge,
int sfi,
int recordNumber)
Instantiates a new AbstractOpenSessionCmdBuild.
|
| Modifier and Type | Method and Description |
|---|---|
OpenSession31RespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
int |
getRecordNumber() |
int |
getSfi() |
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
creategetCommandRefsetApduRequestpublic OpenSession31CmdBuild(byte keyIndex,
byte[] samChallenge,
int sfi,
int recordNumber)
keyIndex - the key indexsamChallenge - the sam challenge returned by the SAM Get Challenge APDU commandsfi - the sfi to selectrecordNumber - the record number to readjava.lang.IllegalArgumentException - - if the request is inconsistentpublic OpenSession31RespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<AbstractOpenSessionRespPars>apduResponse - the response data from the the cardAbstractApduResponseParserpublic boolean isSessionBufferUsed()
Allows the management of the overflow of this buffer.
This command can't be executed in session and therefore doesn't uses the session buffer.
isSessionBufferUsed in class AbstractPoCommandBuilder<AbstractOpenSessionRespPars>public int getSfi()
getSfi in class AbstractOpenSessionCmdBuild<AbstractOpenSessionRespPars>public int getRecordNumber()
getRecordNumber in class AbstractOpenSessionCmdBuild<AbstractOpenSessionRespPars>