Keyple Card Calypso C++ Library 2.2.5.6
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 override
 
const std::string getProductInfo () const override
 
const std::vector< uint8_t > & getSerialNumber () const override
 
uint8_t getPlatform () const override
 
uint8_t getApplicationType () const override
 
uint8_t getApplicationSubType () const override
 
uint8_t getSoftwareIssuer () const override
 
uint8_t getSoftwareVersion () const override
 
uint8_t getSoftwareRevision () const override
 
void putEventCounter (const int eventCounterNumber, const int eventCounterValue)
 
void putEventCeiling (const int eventCeilingNumber, const int eventCeilingValue)
 

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
override
Since
2.0.0

Definition at line 175 of file CalypsoSamAdapter.cpp.

◆ getApplicationType()

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

Definition at line 170 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 115 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 104 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 120 of file CalypsoSamAdapter.cpp.

◆ getPlatform()

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

Definition at line 165 of file CalypsoSamAdapter.cpp.

◆ getPowerOnData()

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

Definition at line 142 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 152 of file CalypsoSamAdapter.cpp.

◆ getProductType()

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

Definition at line 147 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 137 of file CalypsoSamAdapter.cpp.

◆ getSerialNumber()

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

Definition at line 160 of file CalypsoSamAdapter.cpp.

◆ getSoftwareIssuer()

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

Definition at line 180 of file CalypsoSamAdapter.cpp.

◆ getSoftwareRevision()

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

Definition at line 190 of file CalypsoSamAdapter.cpp.

◆ getSoftwareVersion()

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

Definition at line 185 of file CalypsoSamAdapter.cpp.

◆ putEventCeiling()

void keyple::card::calypso::CalypsoSamAdapter::putEventCeiling ( const int  eventCeilingNumber,
const int  eventCeilingValue 
)

(package-private)
Adds or replace an event counter.

Parameters
eventCeilingNumberThe number of the ceiling.
eventCeilingValueThe ceiling value.
Since
2.2.3

Definition at line 200 of file CalypsoSamAdapter.cpp.

◆ putEventCounter()

void keyple::card::calypso::CalypsoSamAdapter::putEventCounter ( const int  eventCounterNumber,
const int  eventCounterValue 
)

(package-private)
Adds or replace an event counter.

Parameters
eventCounterNumberThe number of the counter.
eventCounterValueThe counter value.
Since
2.2.3

Definition at line 195 of file CalypsoSamAdapter.cpp.


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