public final class CloseSessionCmdBuild extends AbstractPoCommandBuilder<CloseSessionRespPars>
| Constructor and Description |
|---|
CloseSessionCmdBuild(PoClass poClass)
Instantiates a new CloseSessionCmdBuild based on the revision of the PO to generate an abort
session command (Close Secure Session with p1 = p2 = lc = 0).
|
CloseSessionCmdBuild(PoClass poClass,
boolean ratificationAsked,
byte[] terminalSessionSignature)
Instantiates a new CloseSessionCmdBuild depending of the revision of the PO.
|
| Modifier and Type | Method and Description |
|---|---|
CloseSessionRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic CloseSessionCmdBuild(PoClass poClass, boolean ratificationAsked, byte[] terminalSessionSignature)
poClass - indicates which CLA byte should be used for the ApduratificationAsked - the ratification askedterminalSessionSignature - the sam half session signaturejava.lang.IllegalArgumentException - - if the signature is null or has a wrong lengthjava.lang.IllegalArgumentException - - if the command is inconsistentpublic CloseSessionCmdBuild(PoClass poClass)
poClass - indicates which CLA byte should be used for the Apdupublic CloseSessionRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<CloseSessionRespPars>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<CloseSessionRespPars>