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::parser::security::OpenSession32RespPars Class Referencefinal

#include <OpenSession32RespPars.h>

Inherits keyple::calypso::command::po::parser::security::AbstractOpenSessionRespPars.

Public Member Functions

 OpenSession32RespPars (std::shared_ptr< ApduResponse > response, OpenSession32CmdBuild *builder)
 
std::shared_ptr< SecureSessiontoSecureSession (const std::vector< uint8_t > &apduResponseData)
 
- Public Member Functions inherited from keyple::calypso::command::po::parser::security::AbstractOpenSessionRespPars
 AbstractOpenSessionRespPars (std::shared_ptr< ApduResponse > response, AbstractOpenSessionCmdBuild< AbstractOpenSessionRespPars > *builder, const PoRevision revision)
 
virtual ~AbstractOpenSessionRespPars ()=default
 
std::shared_ptr< AbstractOpenSessionRespParscreate (std::shared_ptr< ApduResponse > response, const PoRevision revision)
 
virtual const std::vector< uint8_t > & getPoChallenge () const
 
virtual int getTransactionCounterValue () const
 
virtual bool wasRatified () const
 
virtual bool isManageSecureSessionAuthorized () const
 
virtual uint8_t getSelectedKif () const
 
virtual uint8_t getSelectedKvc () const
 
virtual const std::vector< uint8_t > & getRecordDataRead () const
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
 AbstractPoResponseParser (std::shared_ptr< ApduResponse > response, AbstractPoCommandBuilder< AbstractPoResponseParser > *builder)
 
 AbstractPoResponseParser (const AbstractPoResponseParser &arp)=default
 
virtual ~AbstractPoResponseParser ()=default
 
virtual AbstractPoCommandBuilder< AbstractPoResponseParser > * getBuilder () const override
 
void checkStatus () const override
 
- Public Member Functions inherited from keyple::core::command::AbstractApduResponseParser
 AbstractApduResponseParser (const std::shared_ptr< ApduResponse > response, AbstractApduCommandBuilder *builder)
 
 AbstractApduResponseParser (const AbstractApduResponseParser &aarp)=default
 
virtual ~AbstractApduResponseParser ()=default
 
void setApduResponse (const std::shared_ptr< ApduResponse > &response)
 
const std::shared_ptr< ApduResponsegetApduResponse () const
 
virtual bool isSuccessful () const
 
std::string getStatusInformation () const
 

Static Public Member Functions

static std::shared_ptr< SecureSessioncreateSecureSession (const std::vector< uint8_t > &apduResponse)
 

Additional Inherited Members

- Public Attributes inherited from keyple::calypso::command::po::parser::security::AbstractOpenSessionRespPars
std::shared_ptr< SecureSessionmSecureSession
 
- Protected Member Functions inherited from keyple::calypso::command::po::parser::security::AbstractOpenSessionRespPars
const std::map< int, std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Protected Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
const KeypleSeCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override
 
- Protected Member Functions inherited from keyple::core::command::AbstractApduResponseParser
virtual const std::shared_ptr< SeCommandgetCommandRef () const
 
- Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
std::shared_ptr< ApduResponsemResponse
 
AbstractApduCommandBuildermBuilder
 
- Static Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
static const std::map< int, std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Constructor & Destructor Documentation

◆ OpenSession32RespPars()

keyple::calypso::command::po::parser::security::OpenSession32RespPars::OpenSession32RespPars ( std::shared_ptr< ApduResponse response,
OpenSession32CmdBuild builder 
)

Instantiates a new OpenSession32RespPars from the response.

Parameters
responsefrom OpenSession32RespPars
builderthe reference to the builder that created this parser

C++ vs. Java: Do not remove. This code is required as the base class constructor cannot call a derived class member function.

Member Function Documentation

◆ createSecureSession()

std::shared_ptr< AbstractOpenSessionRespPars::SecureSession > keyple::calypso::command::po::parser::security::OpenSession32RespPars::createSecureSession ( const std::vector< uint8_t > &  apduResponse)
static

◆ toSecureSession()

std::shared_ptr< AbstractOpenSessionRespPars::SecureSession > keyple::calypso::command::po::parser::security::OpenSession32RespPars::toSecureSession ( const std::vector< uint8_t > &  apduResponseData)
virtual

Method to get a Secure Session from the response in revision 3.2 mode.

Parameters
apduResponseDatathe apdu response data
Returns
a SecureSession

Reimplemented from keyple::calypso::command::po::parser::security::AbstractOpenSessionRespPars.


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