Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Static Public Member Functions | List of all members
keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T > Class Template Referenceabstract

#include <AbstractOpenSessionCmdBuild.h>

Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< T >.

Public Member Functions

 AbstractOpenSessionCmdBuild (PoRevision revision)
 
virtual uint8_t getSfi () const =0
 
virtual uint8_t getRecordNumber () const =0
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< T >
 AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractPoCommandBuilder ()=default
 
virtual std::shared_ptr< T > createResponseParser (std::shared_ptr< ApduResponse > apduResponse)=0
 
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::string & getName () const
 
virtual const std::shared_ptr< ApduRequestgetApduRequest () const
 

Static Public Member Functions

static std::shared_ptr< AbstractOpenSessionCmdBuild< T > > create (const PoRevision revision, const uint8_t debitKeyIndex, const std::vector< uint8_t > &sessionTerminalChallenge, const uint8_t sfi, const uint8_t recordNumber)
 

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< T >
const std::shared_ptr< LoggermLogger
 
- Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder
const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Detailed Description

template<typename T>
class keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T >

The Class AbstractOpenSessionCmdBuild. This class provides the dedicated constructor to build the Open Secure Session APDU command.

Constructor & Destructor Documentation

◆ AbstractOpenSessionCmdBuild()

Instantiates a new AbstractOpenSessionCmdBuild.

Parameters
revisionthe revision of the PO
Exceptions
IllegalArgumentException- if the key index is 0 and rev is 2.4
IllegalArgumentException- if the request is inconsistent

Member Function Documentation

◆ create()

template<typename T >
static std::shared_ptr<AbstractOpenSessionCmdBuild<T> > keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T >::create ( const PoRevision  revision,
const uint8_t  debitKeyIndex,
const std::vector< uint8_t > &  sessionTerminalChallenge,
const uint8_t  sfi,
const uint8_t  recordNumber 
)
inlinestatic

◆ getRecordNumber()

template<typename T >
virtual uint8_t keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T >::getRecordNumber ( ) const
pure virtual
Returns
the record number to read

◆ getSfi()

template<typename T >
virtual uint8_t keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T >::getSfi ( ) const
pure virtual
Returns
the SFI of the file read while opening the secure session

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