Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <CloseSessionCmdBuild.h>
Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< CloseSessionRespPars >.
Public Member Functions | |
CloseSessionCmdBuild (const PoClass &poClass, const bool ratificationAsked, const std::vector< uint8_t > &terminalSessionSignature) | |
CloseSessionCmdBuild (PoClass poClass) | |
std::shared_ptr< CloseSessionRespPars > | createResponseParser (std::shared_ptr< ApduResponse > apduResponse) override |
virtual bool | isSessionBufferUsed () const override |
![]() | |
AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractPoCommandBuilder ()=default |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const override |
virtual bool | isSessionBufferUsed () const=0 |
![]() | |
AbstractIso7816CommandBuilder (const std::shared_ptr< SeCommand > commandReference, const std::shared_ptr< ApduRequest > request) | |
AbstractIso7816CommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractIso7816CommandBuilder ()=default |
![]() | |
AbstractApduCommandBuilder (const std::shared_ptr< SeCommand > commandRef, const std::shared_ptr< ApduRequest > request) | |
AbstractApduCommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractApduCommandBuilder ()=default |
virtual void | addSubName (const std::string &subName) |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const |
virtual const std::string & | getName () const |
virtual const std::shared_ptr< ApduRequest > | getApduRequest () const |
Additional Inherited Members | |
![]() | |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn) |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le) |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn, const uint8_t le) |
![]() | |
const std::shared_ptr< Logger > | mLogger |
![]() | |
const std::shared_ptr< SeCommand > | mCommandRef |
std::shared_ptr< ApduRequest > | mRequest |
This class provides the dedicated constructor to build the Close Secure Session APDU command.
keyple::calypso::command::po::builder::security::CloseSessionCmdBuild::CloseSessionCmdBuild | ( | const PoClass & | poClass, |
const bool | ratificationAsked, | ||
const std::vector< uint8_t > & | terminalSessionSignature | ||
) |
Instantiates a new CloseSessionCmdBuild depending of the revision of the PO.
poClass | indicates which CLA byte should be used for the Apdu |
ratificationAsked | the ratification asked |
terminalSessionSignature | the sam half session signature |
IllegalArgumentException | - if the signature is null or has a wrong length |
IllegalArgumentException | - if the command is inconsistent |
keyple::calypso::command::po::builder::security::CloseSessionCmdBuild::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).
poClass | indicates which CLA byte should be used for the Apdu |
|
overridevirtual |
Create the response parser matching the builder
apduResponse | the response data from the SE |
Implements keyple::calypso::command::po::AbstractPoCommandBuilder< CloseSessionRespPars >.
|
overridevirtual |
This command can't be executed in session and therefore doesn't uses the session buffer.