Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
Public Member Functions | Static Public Member Functions | List of all members
keyple::card::calypso::CalypsoSamAdapter Class Referencefinal

#include <CalypsoSamAdapter.h>

Inheritance diagram for keyple::card::calypso::CalypsoSamAdapter:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::CalypsoSamAdapter:
Collaboration graph
[legend]

Public Member Functions

 CalypsoSamAdapter (const std::shared_ptr< CardSelectionResponseApi > cardSelectionResponse)
 
uint8_t getClassByte () const
 
int getMaxDigestDataLength () const
 
const std::vector< uint8_t > getSelectApplicationResponse () const override
 
const std::string & getPowerOnData () const override
 
CalypsoSam::ProductType getProductType () const final
 
const std::string getProductInfo () const override
 
const std::vector< uint8_t > & getSerialNumber () const final
 
uint8_t getPlatform () const final
 
uint8_t getApplicationType () const final
 
uint8_t getApplicationSubType () const final
 
uint8_t getSoftwareIssuer () const final
 
uint8_t getSoftwareVersion () const final
 
uint8_t getSoftwareRevision () const final
 

Static Public Member Functions

static uint8_t getClassByte (const CalypsoSam::ProductType type)
 

Detailed Description

(package-private)
Implementation of CalypsoSam.

Since
2.0.0

Definition at line 45 of file CalypsoSamAdapter.h.

Constructor & Destructor Documentation

◆ CalypsoSamAdapter()

keyple::card::calypso::CalypsoSamAdapter::CalypsoSamAdapter ( const std::shared_ptr< CardSelectionResponseApi >  cardSelectionResponse)

Constructor.

Create the initial content from the data received in response to the card selection.

Parameters
cardSelectionResponsethe response to the selection command.
Since
2.0.0

Definition at line 31 of file CalypsoSamAdapter.cpp.

Member Function Documentation

◆ getApplicationSubType()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getApplicationSubType ( ) const
final
Since
2.0.0

Definition at line 172 of file CalypsoSamAdapter.cpp.

◆ getApplicationType()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getApplicationType ( ) const
final
Since
2.0.0

Definition at line 167 of file CalypsoSamAdapter.cpp.

◆ getClassByte() [1/2]

uint8_t keyple::card::calypso::CalypsoSamAdapter::getClassByte ( ) const

(package-private)
Gets the class byte to use for the current product type.

Returns
A byte.
Since
2.0.0

Definition at line 113 of file CalypsoSamAdapter.cpp.

◆ getClassByte() [2/2]

uint8_t keyple::card::calypso::CalypsoSamAdapter::getClassByte ( const CalypsoSam::ProductType  type)
static

(package-private)
Gets the class byte to use for the provided product type.

Returns
A byte.
Since
2.0.0

Definition at line 102 of file CalypsoSamAdapter.cpp.

◆ getMaxDigestDataLength()

int keyple::card::calypso::CalypsoSamAdapter::getMaxDigestDataLength ( ) const

(package-private)
Gets the maximum length allowed for digest commands.

Returns
An positive int.
Since
2.0.0

Definition at line 118 of file CalypsoSamAdapter.cpp.

◆ getPlatform()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getPlatform ( ) const
final
Since
2.0.0

Definition at line 162 of file CalypsoSamAdapter.cpp.

◆ getPowerOnData()

const std::string & keyple::card::calypso::CalypsoSamAdapter::getPowerOnData ( ) const
override
Since
2.0.0

Definition at line 139 of file CalypsoSamAdapter.cpp.

◆ getProductInfo()

const std::string keyple::card::calypso::CalypsoSamAdapter::getProductInfo ( ) const
override

Gets textual information about the SAM.

Returns
A not empty String.

Definition at line 149 of file CalypsoSamAdapter.cpp.

◆ getProductType()

CalypsoSam::ProductType keyple::card::calypso::CalypsoSamAdapter::getProductType ( ) const
final
Since
2.0.0

Definition at line 144 of file CalypsoSamAdapter.cpp.

◆ getSelectApplicationResponse()

const std::vector< uint8_t > keyple::card::calypso::CalypsoSamAdapter::getSelectApplicationResponse ( ) const
override


No select application for a SAM.

Since
2.0.0

Definition at line 134 of file CalypsoSamAdapter.cpp.

◆ getSerialNumber()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoSamAdapter::getSerialNumber ( ) const
final
Since
2.0.0

Definition at line 157 of file CalypsoSamAdapter.cpp.

◆ getSoftwareIssuer()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getSoftwareIssuer ( ) const
final
Since
2.0.0

Definition at line 177 of file CalypsoSamAdapter.cpp.

◆ getSoftwareRevision()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getSoftwareRevision ( ) const
final
Since
2.0.0

Definition at line 187 of file CalypsoSamAdapter.cpp.

◆ getSoftwareVersion()

uint8_t keyple::card::calypso::CalypsoSamAdapter::getSoftwareVersion ( ) const
final
Since
2.0.0

Definition at line 182 of file CalypsoSamAdapter.cpp.


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