Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::calypso::command::po::builder::security::CloseSessionCmdBuild Class Referencefinal

#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< CloseSessionRespParscreateResponseParser (std::shared_ptr< ApduResponse > apduResponse) override
 
virtual bool isSessionBufferUsed () const override
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< CloseSessionRespPars >
 AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractPoCommandBuilder ()=default
 
virtual const std::shared_ptr< SeCommandgetCommandRef () const override
 
virtual bool isSessionBufferUsed () const=0
 
- Public Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
 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
 
- Public Member Functions inherited from keyple::core::command::AbstractApduCommandBuilder
 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< SeCommandgetCommandRef () const
 
virtual const std::string & getName () const
 
virtual const std::shared_ptr< ApduRequestgetApduRequest () const
 

Additional Inherited Members

- Protected Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
virtual std::shared_ptr< ApduRequestsetApduRequest (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< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le)
 
virtual std::shared_ptr< ApduRequestsetApduRequest (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)
 
- Protected Attributes inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< CloseSessionRespPars >
const std::shared_ptr< LoggermLogger
 
- Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder
const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Detailed Description

This class provides the dedicated constructor to build the Close Secure Session APDU command.

Constructor & Destructor Documentation

◆ CloseSessionCmdBuild() [1/2]

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.

Parameters
poClassindicates which CLA byte should be used for the Apdu
ratificationAskedthe ratification asked
terminalSessionSignaturethe sam half session signature
Exceptions
IllegalArgumentException- if the signature is null or has a wrong length
IllegalArgumentException- if the command is inconsistent

◆ CloseSessionCmdBuild() [2/2]

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).

Parameters
poClassindicates which CLA byte should be used for the Apdu

Member Function Documentation

◆ createResponseParser()

std::shared_ptr< CloseSessionRespPars > keyple::calypso::command::po::builder::security::CloseSessionCmdBuild::createResponseParser ( std::shared_ptr< ApduResponse apduResponse)
overridevirtual

Create the response parser matching the builder

Parameters
apduResponsethe response data from the SE
Returns
an keyple::core::command::AbstractApduResponseParser

Implements keyple::calypso::command::po::AbstractPoCommandBuilder< CloseSessionRespPars >.

◆ isSessionBufferUsed()

bool keyple::calypso::command::po::builder::security::CloseSessionCmdBuild::isSessionBufferUsed ( ) const
overridevirtual

This command can't be executed in session and therefore doesn't uses the session buffer.

Returns
false

The documentation for this class was generated from the following files: