![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdCardCloseSession.h>
Public Member Functions | |
CmdCardCloseSession (const std::shared_ptr< CalypsoCard > calypsoCard, const bool ratificationAsked, const std::vector< uint8_t > terminalSessionSignature) | |
CmdCardCloseSession (const std::shared_ptr< CalypsoCard > calypsoCard) | |
bool | isSessionBufferUsed () const override |
CmdCardCloseSession & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
const std::vector< uint8_t > & | getSignatureLo () const |
const std::vector< uint8_t > & | getPostponedData () const |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
AbstractCardCommand (const CalypsoCardCommand &commandRef) | |
const CalypsoCardCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef) | |
virtual void | addSubName (const std::string &subName) final |
virtual const std::string & | getName () const final |
virtual void | setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final |
virtual const std::shared_ptr< ApduRequestAdapter > | getApduRequest () const final |
virtual const std::shared_ptr< ApduResponseApi > | getApduResponse () const final |
virtual bool | isSuccessful () const final |
virtual const std::string | getStatusInformation () const final |
Additional Inherited Members | |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Builds the Close Secure Session APDU command.
Definition at line 46 of file CmdCardCloseSession.h.
keyple::card::calypso::CmdCardCloseSession::CmdCardCloseSession | ( | const std::shared_ptr< CalypsoCard > | calypsoCard, |
const bool | ratificationAsked, | ||
const std::vector< uint8_t > | terminalSessionSignature | ||
) |
(package-private)
Instantiates a new CmdCardCloseSession depending on the product type of the card.
calypsoCard | The CalypsoCard. |
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 |
Definition at line 40 of file CmdCardCloseSession.cpp.
keyple::card::calypso::CmdCardCloseSession::CmdCardCloseSession | ( | const std::shared_ptr< CalypsoCard > | calypsoCard | ) |
(package-private)
Instantiates a new CmdCardCloseSession based on the product type of the card to generate an abort session command (Close Secure Session with p1 = p2 = lc = 0).
calypsoCard | The CalypsoCard. |
Definition at line 73 of file CmdCardCloseSession.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardCloseSession::getPostponedData | ( | ) | const |
(package-private)
Gets the secure session postponed data (e.g. Sv Signature).
Definition at line 160 of file CmdCardCloseSession.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardCloseSession::getSignatureLo | ( | ) | const |
(package-private)
Gets the low part of the session signature.
Definition at line 155 of file CmdCardCloseSession.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 189 of file CmdCardCloseSession.cpp.
|
overridevirtual |
(package-private)
Indicates if the session buffer is used when executing this command.Allows the management of the overflow of this buffer.
Implements keyple::card::calypso::AbstractCardCommand.
Definition at line 88 of file CmdCardCloseSession.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Checks the card response length; the admissible lengths are 0, 4 or 8 bytes.
Reimplemented from keyple::card::calypso::AbstractCardCommand.
Definition at line 93 of file CmdCardCloseSession.cpp.