Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
Classes | Public Member Functions | Friends | List of all members
keyple::card::calypso::CalypsoCardAdapter Class Referencefinal

#include <CalypsoCardAdapter.h>

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

Public Member Functions

 CalypsoCardAdapter ()
 
void initialize (const std::shared_ptr< CardSelectionResponseApi > cardSelectionResponse)
 
void initializeWithFci (const std::shared_ptr< CmdCardGetDataFci > cmdCardGetDataFci)
 
const CalypsoCard::ProductType & getProductType () const override
 
bool isHce () const override
 
const std::vector< uint8_t > & getDfName () const override
 
const std::vector< uint8_t > & getCalypsoSerialNumberFull () const
 
const std::vector< uint8_t > getApplicationSerialNumber () const override
 
const std::vector< uint8_t > & getStartupInfoRawData () const override
 
uint8_t getPayloadCapacity () const
 
bool isModificationsCounterInBytes () const
 
int getModificationsCounter () const
 
uint8_t getPlatform () const override
 
uint8_t getApplicationType () const override
 
bool isExtendedModeSupported () const override
 
bool isRatificationOnDeselectSupported () const override
 
bool isSvFeatureAvailable () const override
 
bool isPinFeatureAvailable () const override
 
bool isPkiModeSupported () const override
 
uint8_t getApplicationSubtype () const override
 
uint8_t getSoftwareIssuer () const override
 
uint8_t getSoftwareVersion () const override
 
uint8_t getSoftwareRevision () const override
 
uint8_t getSessionModification () const override
 
const std::vector< uint8_t > getTraceabilityInformation () const override
 
bool isDfInvalidated () const override
 
bool isDfRatified () const override
 
int getTransactionCounter () const override
 
void setTransactionCounter (const int transactionCounter)
 
void setSvData (const uint8_t svKvc, const std::vector< uint8_t > &svGetHeader, const std::vector< uint8_t > &svGetData, const int svBalance, const int svLastTNum, const std::shared_ptr< SvLoadLogRecord > svLoadLogRecord, const std::shared_ptr< SvDebitLogRecord > svDebitLogRecord)
 
int getSvBalance () const override
 
int getSvLastTNum () const override
 
const std::shared_ptr< SvLoadLogRecord > getSvLoadLogRecord () override
 
const std::shared_ptr< SvDebitLogRecord > getSvDebitLogLastRecord () override
 
const std::vector< std::shared_ptr< SvDebitLogRecord > > getSvDebitLogAllRecords () const override
 
void setDfRatified (const bool dfRatified)
 
CalypsoCardClass getCardClass () const
 
const std::shared_ptr< DirectoryHeader > getDirectoryHeader () const override
 
CalypsoCard & setDirectoryHeader (const std::shared_ptr< DirectoryHeader > directoryHeader)
 
const std::shared_ptr< ElementaryFile > getFileBySfi (const uint8_t sfi) const override
 
const std::shared_ptr< ElementaryFile > getFileByLid (const uint16_t lid) const override
 
const std::map< const uint8_t, const std::shared_ptr< ElementaryFile > > getAllFiles () const override
 
const std::vector< std::shared_ptr< ElementaryFile > > & getFiles () const override
 
bool isPinBlocked () const override
 
int getPinAttemptRemaining () const override
 
void setPinAttemptRemaining (const int pinAttemptCounter)
 
void setFileHeader (const uint8_t sfi, const std::shared_ptr< FileHeaderAdapter > header)
 
void setContent (const uint8_t sfi, const uint8_t numRecord, const std::vector< uint8_t > &content)
 
void setCounter (const uint8_t sfi, const uint8_t numCounter, const std::vector< uint8_t > &content)
 
void setContent (const uint8_t sfi, const uint8_t numRecord, const std::vector< uint8_t > &content, const int offset)
 
void fillContent (const uint8_t sfi, const uint8_t numRecord, const std::vector< uint8_t > &content, const int offset)
 
void addCyclicContent (const uint8_t sfi, const std::vector< uint8_t > content)
 
void backupFiles ()
 
void restoreFiles ()
 
const std::string & getPowerOnData () const override
 
const std::vector< uint8_t > getSelectApplicationResponse () const override
 
void setCardChallenge (const std::vector< uint8_t > &cardChallenge)
 
void setTraceabilityInformation (const std::vector< uint8_t > &traceabilityInformation)
 
void setSvOperationSignature (const std::vector< uint8_t > &svOperationSignature)
 
const std::vector< uint8_t > & getCardChallenge () const
 
uint8_t getSvKvc () const
 
const std::vector< uint8_t > & getSvGetHeader () const
 
const std::vector< uint8_t > & getSvGetData () const
 
const std::vector< uint8_t > & getSvOperationSignature () const
 
bool isCounterValuePostponed () const
 

Friends

KEYPLECARDCALYPSO_API std::ostream & operator<< (std::ostream &os, const CalypsoCardAdapter &cca)
 
KEYPLECARDCALYPSO_API std::ostream & operator<< (std::ostream &os, const std::shared_ptr< CalypsoCardAdapter > cca)
 

Detailed Description

(package-private)
Implementation of CalypsoCard.

Since
2.0.0

Definition at line 59 of file CalypsoCardAdapter.h.

Constructor & Destructor Documentation

◆ CalypsoCardAdapter()

keyple::card::calypso::CalypsoCardAdapter::CalypsoCardAdapter ( )

Constructor.

Since
2.0.0

Definition at line 76 of file CalypsoCardAdapter.cpp.

Member Function Documentation

◆ addCyclicContent()

void keyple::card::calypso::CalypsoCardAdapter::addCyclicContent ( const uint8_t  sfi,
const std::vector< uint8_t >  content 
)

(package-private)
Add cyclic content at record #1 by rolling previously all actual records contents (record #1 -> record #2, record #2 -> record #3,...) of the current selected file.
This is useful for cyclic files. Note that records are infinitely shifted.

If EF does not exist, then it is created.

Parameters
sfithe SFI.
contentthe content (should be not empty).
Since
2.0.0

Definition at line 724 of file CalypsoCardAdapter.cpp.

◆ backupFiles()

void keyple::card::calypso::CalypsoCardAdapter::backupFiles ( )

(package-private)
Make a backup of the Elementary Files.
This method should be used before starting a card secure session.

Since
2.0.0

Definition at line 730 of file CalypsoCardAdapter.cpp.

◆ fillContent()

void keyple::card::calypso::CalypsoCardAdapter::fillContent ( const uint8_t  sfi,
const uint8_t  numRecord,
const std::vector< uint8_t > &  content,
const int  offset 
)

(package-private)
Fills the content at the specified offset of the specified record of the current selected file using a binary OR operation with the provided content.
If EF does not exist, then it is created.
If actual record content is not set or has a size

<

offset + content size, then missing data will be completed by the provided content.

Parameters
sfithe SFI.
numRecordthe record number (should be
>=
1).
contentthe content (should be not empty).
offsetthe offset (should be
>=
0).
Since
2.1.0

Definition at line 714 of file CalypsoCardAdapter.cpp.

◆ getAllFiles()

const std::map< const uint8_t, const std::shared_ptr< ElementaryFile > > keyple::card::calypso::CalypsoCardAdapter::getAllFiles ( ) const
override
Since
2.0.0
Deprecated:

Definition at line 597 of file CalypsoCardAdapter.cpp.

◆ getApplicationSerialNumber()

const std::vector< uint8_t > keyple::card::calypso::CalypsoCardAdapter::getApplicationSerialNumber ( ) const
override
Since
2.0.0

Definition at line 327 of file CalypsoCardAdapter.cpp.

◆ getApplicationSubtype()

uint8_t keyple::card::calypso::CalypsoCardAdapter::getApplicationSubtype ( ) const
override
Since
2.0.0

Definition at line 391 of file CalypsoCardAdapter.cpp.

◆ getApplicationType()

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

Definition at line 361 of file CalypsoCardAdapter.cpp.

◆ getCalypsoSerialNumberFull()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoCardAdapter::getCalypsoSerialNumberFull ( ) const

(package-private)
Gets the full Calypso serial number including the possible validity date information in the two MSB.

The serial number to be used as diversifier for key derivation.
This is the complete number returned by the card in its response to the Select command.

Returns
A byte array containing the Calypso Serial Number (8 bytes)
Since
2.0.0

Definition at line 322 of file CalypsoCardAdapter.cpp.

◆ getCardChallenge()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoCardAdapter::getCardChallenge ( ) const

(package-private)
Gets the challenge received from the card

Returns
An array of bytes containing the challenge bytes (variable length according to the product type of the card). May be null if the challenge is not available.
Since
2.0.0

Definition at line 779 of file CalypsoCardAdapter.cpp.

◆ getCardClass()

CalypsoCardClass keyple::card::calypso::CalypsoCardAdapter::getCardClass ( ) const

(package-private)
Gets the current card class.

Returns
A not null reference.
Since
2.0.0

Definition at line 547 of file CalypsoCardAdapter.cpp.

◆ getDfName()

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

Definition at line 317 of file CalypsoCardAdapter.cpp.

◆ getDirectoryHeader()

const std::shared_ptr< DirectoryHeader > keyple::card::calypso::CalypsoCardAdapter::getDirectoryHeader ( ) const
override
Since
2.0.0

Definition at line 552 of file CalypsoCardAdapter.cpp.

◆ getFileByLid()

const std::shared_ptr< ElementaryFile > keyple::card::calypso::CalypsoCardAdapter::getFileByLid ( const uint16_t  lid) const
override
Since
2.0.0

Definition at line 583 of file CalypsoCardAdapter.cpp.

◆ getFileBySfi()

const std::shared_ptr< ElementaryFile > keyple::card::calypso::CalypsoCardAdapter::getFileBySfi ( const uint8_t  sfi) const
override
Since
2.0.0

Definition at line 566 of file CalypsoCardAdapter.cpp.

◆ getFiles()

const std::vector< std::shared_ptr< ElementaryFile > > & keyple::card::calypso::CalypsoCardAdapter::getFiles ( ) const
override
Since
2.1.0

Definition at line 609 of file CalypsoCardAdapter.cpp.

◆ getModificationsCounter()

int keyple::card::calypso::CalypsoCardAdapter::getModificationsCounter ( ) const

(package-private)
Indicates the maximum number of changes allowed in session.

This number can be a number of operations or a number of commands (see isModificationsCounterInBytes)

Returns
The maximum number of modifications allowed
Since
2.0.0

Definition at line 351 of file CalypsoCardAdapter.cpp.

◆ getPayloadCapacity()

uint8_t keyple::card::calypso::CalypsoCardAdapter::getPayloadCapacity ( ) const

(package-private)
Gets the maximum length of data that an APDU in this card can carry.

Returns
An int
Since
2.0.0

Definition at line 341 of file CalypsoCardAdapter.cpp.

◆ getPinAttemptRemaining()

int keyple::card::calypso::CalypsoCardAdapter::getPinAttemptRemaining ( ) const
override
Since
2.0.0

Definition at line 659 of file CalypsoCardAdapter.cpp.

◆ getPlatform()

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

Definition at line 356 of file CalypsoCardAdapter.cpp.

◆ getPowerOnData()

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

Definition at line 749 of file CalypsoCardAdapter.cpp.

◆ getProductType()

const CalypsoCard::ProductType & keyple::card::calypso::CalypsoCardAdapter::getProductType ( ) const
override
Since
2.0.0

Definition at line 307 of file CalypsoCardAdapter.cpp.

◆ getSelectApplicationResponse()

const std::vector< uint8_t > keyple::card::calypso::CalypsoCardAdapter::getSelectApplicationResponse ( ) const
override
Since
2.0.0

Definition at line 754 of file CalypsoCardAdapter.cpp.

◆ getSessionModification()

uint8_t keyple::card::calypso::CalypsoCardAdapter::getSessionModification ( ) const
override
Since
2.0.0

Definition at line 411 of file CalypsoCardAdapter.cpp.

◆ getSoftwareIssuer()

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

Definition at line 396 of file CalypsoCardAdapter.cpp.

◆ getSoftwareRevision()

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

Definition at line 406 of file CalypsoCardAdapter.cpp.

◆ getSoftwareVersion()

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

Definition at line 401 of file CalypsoCardAdapter.cpp.

◆ getStartupInfoRawData()

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

Definition at line 336 of file CalypsoCardAdapter.cpp.

◆ getSvBalance()

int keyple::card::calypso::CalypsoCardAdapter::getSvBalance ( ) const
override
Since
2.0.0

Definition at line 476 of file CalypsoCardAdapter.cpp.

◆ getSvDebitLogAllRecords()

const std::vector< std::shared_ptr< SvDebitLogRecord > > keyple::card::calypso::CalypsoCardAdapter::getSvDebitLogAllRecords ( ) const
override
Since
2.0.0

Definition at line 521 of file CalypsoCardAdapter.cpp.

◆ getSvDebitLogLastRecord()

const std::shared_ptr< SvDebitLogRecord > keyple::card::calypso::CalypsoCardAdapter::getSvDebitLogLastRecord ( )
override
Since
2.0.0

Definition at line 509 of file CalypsoCardAdapter.cpp.

◆ getSvGetData()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoCardAdapter::getSvGetData ( ) const

(package-private)
Gets the SV Get command response data

Returns
A byte array containing the SV Get command response data.
Exceptions
IllegalStateExceptionIf the requested data has not been set.
Since
2.0.0

Definition at line 799 of file CalypsoCardAdapter.cpp.

◆ getSvGetHeader()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoCardAdapter::getSvGetHeader ( ) const

(package-private)
Gets the SV Get command header

Returns
A byte array containing the SV Get command header.
Exceptions
IllegalStateExceptionIf the requested data has not been set.
Since
2.0.0

Definition at line 789 of file CalypsoCardAdapter.cpp.

◆ getSvKvc()

uint8_t keyple::card::calypso::CalypsoCardAdapter::getSvKvc ( ) const

(package-private)
Gets the SV KVC from the card

Returns
The SV KVC byte.
Since
2.0.0

Definition at line 784 of file CalypsoCardAdapter.cpp.

◆ getSvLastTNum()

int keyple::card::calypso::CalypsoCardAdapter::getSvLastTNum ( ) const
override
Since
2.0.0

Definition at line 485 of file CalypsoCardAdapter.cpp.

◆ getSvLoadLogRecord()

const std::shared_ptr< SvLoadLogRecord > keyple::card::calypso::CalypsoCardAdapter::getSvLoadLogRecord ( )
override
Since
2.0.0

Definition at line 494 of file CalypsoCardAdapter.cpp.

◆ getSvOperationSignature()

const std::vector< uint8_t > & keyple::card::calypso::CalypsoCardAdapter::getSvOperationSignature ( ) const

(package-private)
Gets the last SV Operation signature (SV Reload, Debit or Undebit)

Returns
A byte array containing the SV Operation signature or null if not available.
Since
2.0.0

Definition at line 809 of file CalypsoCardAdapter.cpp.

◆ getTraceabilityInformation()

const std::vector< uint8_t > keyple::card::calypso::CalypsoCardAdapter::getTraceabilityInformation ( ) const
override
Since
2.1.0

Definition at line 416 of file CalypsoCardAdapter.cpp.

◆ getTransactionCounter()

int keyple::card::calypso::CalypsoCardAdapter::getTransactionCounter ( ) const
override
Since
2.1.1

Definition at line 437 of file CalypsoCardAdapter.cpp.

◆ initialize()

void keyple::card::calypso::CalypsoCardAdapter::initialize ( const std::shared_ptr< CardSelectionResponseApi >  cardSelectionResponse)

Post-construction initialization function

/!\ C++ specific

Since
2.3.3

Definition at line 78 of file CalypsoCardAdapter.cpp.

◆ initializeWithFci()

void keyple::card::calypso::CalypsoCardAdapter::initializeWithFci ( const std::shared_ptr< CmdCardGetDataFci cmdCardGetDataFci)

(package-private)
Initializes or post-initializes the object with the application FCI data.

Parameters
cmdCardGetDataFciThe command containing the parsed FCI data.
Exceptions
IllegalArgumentExceptionIf the FCI is inconsistent.
Since
2.2.3

Definition at line 206 of file CalypsoCardAdapter.cpp.

◆ isCounterValuePostponed()

bool keyple::card::calypso::CalypsoCardAdapter::isCounterValuePostponed ( ) const

(package-private)
Indicates if the response of the Increase/Decrease counter command is postponed to the close secure session (old revision 2 cards).

Returns
true if the response of the Increase/Decrease counter command is postponed.
Since
2.2.4

Definition at line 858 of file CalypsoCardAdapter.cpp.

◆ isDfInvalidated()

bool keyple::card::calypso::CalypsoCardAdapter::isDfInvalidated ( ) const
override
Since
2.0.0

Definition at line 422 of file CalypsoCardAdapter.cpp.

◆ isDfRatified()

bool keyple::card::calypso::CalypsoCardAdapter::isDfRatified ( ) const
override
Since
2.0.0

Definition at line 427 of file CalypsoCardAdapter.cpp.

◆ isExtendedModeSupported()

bool keyple::card::calypso::CalypsoCardAdapter::isExtendedModeSupported ( ) const
override
Since
2.0.0

Definition at line 366 of file CalypsoCardAdapter.cpp.

◆ isHce()

bool keyple::card::calypso::CalypsoCardAdapter::isHce ( ) const
override
Since
2.0.0

Definition at line 312 of file CalypsoCardAdapter.cpp.

◆ isModificationsCounterInBytes()

bool keyple::card::calypso::CalypsoCardAdapter::isModificationsCounterInBytes ( ) const

(package-private)
Tells if the change counter allowed in session is established in number of operations or number of bytes modified.

This varies depending on the product type of the card.

Returns
True if the counter is number of bytes
Since
2.0.0

Definition at line 346 of file CalypsoCardAdapter.cpp.

◆ isPinBlocked()

bool keyple::card::calypso::CalypsoCardAdapter::isPinBlocked ( ) const
override
Since
2.0.0

Definition at line 654 of file CalypsoCardAdapter.cpp.

◆ isPinFeatureAvailable()

bool keyple::card::calypso::CalypsoCardAdapter::isPinFeatureAvailable ( ) const
override
Since
2.0.0

Definition at line 381 of file CalypsoCardAdapter.cpp.

◆ isPkiModeSupported()

bool keyple::card::calypso::CalypsoCardAdapter::isPkiModeSupported ( ) const
override
Since
2.0.0

Definition at line 386 of file CalypsoCardAdapter.cpp.

◆ isRatificationOnDeselectSupported()

bool keyple::card::calypso::CalypsoCardAdapter::isRatificationOnDeselectSupported ( ) const
override
Since
2.0.0

Definition at line 371 of file CalypsoCardAdapter.cpp.

◆ isSvFeatureAvailable()

bool keyple::card::calypso::CalypsoCardAdapter::isSvFeatureAvailable ( ) const
override
Since
2.0.0

Definition at line 376 of file CalypsoCardAdapter.cpp.

◆ restoreFiles()

void keyple::card::calypso::CalypsoCardAdapter::restoreFiles ( )

(package-private)
Restore the last backup of Elementary Files.
This method should be used when SW of the card close secure session command is unsuccessful or if secure session is aborted.

Since
2.0.0

Definition at line 735 of file CalypsoCardAdapter.cpp.

◆ setCardChallenge()

void keyple::card::calypso::CalypsoCardAdapter::setCardChallenge ( const std::vector< uint8_t > &  cardChallenge)

(package-private)
Sets the challenge received in response to the GET CHALLENGE command.

Parameters
cardChallengeA not empty array.
Since
2.0.0

Definition at line 763 of file CalypsoCardAdapter.cpp.

◆ setContent() [1/2]

void keyple::card::calypso::CalypsoCardAdapter::setContent ( const uint8_t  sfi,
const uint8_t  numRecord,
const std::vector< uint8_t > &  content 
)

(package-private)
Set or replace the entire content of the specified record #numRecord of the current selected file by the provided content.
If EF does not exist, then it is created.

Parameters
sfithe SFI.
numRecordthe record number (should be
>=
1).
contentthe content (should be not empty).
Since
2.0.0

Definition at line 688 of file CalypsoCardAdapter.cpp.

◆ setContent() [2/2]

void keyple::card::calypso::CalypsoCardAdapter::setContent ( const uint8_t  sfi,
const uint8_t  numRecord,
const std::vector< uint8_t > &  content,
const int  offset 
)

(package-private)
Set or replace the content at the specified offset of record #numRecord of the current selected file by a copy of the provided content.
If EF does not exist, then it is created.
If actual record content is not set or has a size

<

offset, then missing data will be padded with 0.

Parameters
sfithe SFI.
numRecordthe record number (should be
>=
1).
contentthe content (should be not empty).
offsetthe offset (should be
>=
0).
Since
2.0.0

Definition at line 704 of file CalypsoCardAdapter.cpp.

◆ setCounter()

void keyple::card::calypso::CalypsoCardAdapter::setCounter ( const uint8_t  sfi,
const uint8_t  numCounter,
const std::vector< uint8_t > &  content 
)

(package-private)
Sets a counter value in record #1 of the current selected file.
If EF does not exist, then it is created.

Parameters
sfithe SFI.
numCounterthe counter number (should be
>=
1).
contentthe counter value (should be not null and 3 bytes length).
Since
2.0.0

Definition at line 696 of file CalypsoCardAdapter.cpp.

◆ setDfRatified()

void keyple::card::calypso::CalypsoCardAdapter::setDfRatified ( const bool  dfRatified)

(package-private)
Sets the ratification status

Parameters
dfRatifiedtrue if the session was ratified.
Since
2.0.0

Definition at line 542 of file CalypsoCardAdapter.cpp.

◆ setDirectoryHeader()

CalypsoCard & keyple::card::calypso::CalypsoCardAdapter::setDirectoryHeader ( const std::shared_ptr< DirectoryHeader >  directoryHeader)

(package-private)
Sets the DF metadata.
Updates the invalidation flag.

Parameters
directoryHeaderthe DF metadata (should be not null).
Returns
the current instance.
Since
2.0.0

Definition at line 557 of file CalypsoCardAdapter.cpp.

◆ setFileHeader()

void keyple::card::calypso::CalypsoCardAdapter::setFileHeader ( const uint8_t  sfi,
const std::shared_ptr< FileHeaderAdapter header 
)

(package-private)
Sets the provided ileHeaderAdapter} to the current selected file.
If EF does not exist, then it is created.

Parameters
sfithe SFI.
headerthe file header (should be not null).
Since
2.0.0

Definition at line 673 of file CalypsoCardAdapter.cpp.

◆ setPinAttemptRemaining()

void keyple::card::calypso::CalypsoCardAdapter::setPinAttemptRemaining ( const int  pinAttemptCounter)

(package-private)
Sets the PIN attempts counter.
The PIN attempt counter is interpreted to give the results of the methods isPinBlocked and getPinAttemptRemaining.

Parameters
pinAttemptCounterthe number of remaining attempts to present the PIN code.
Since
2.0.0

Definition at line 668 of file CalypsoCardAdapter.cpp.

◆ setSvData()

void keyple::card::calypso::CalypsoCardAdapter::setSvData ( const uint8_t  svKvc,
const std::vector< uint8_t > &  svGetHeader,
const std::vector< uint8_t > &  svGetData,
const int  svBalance,
const int  svLastTNum,
const std::shared_ptr< SvLoadLogRecord >  svLoadLogRecord,
const std::shared_ptr< SvDebitLogRecord >  svDebitLogRecord 
)

(package-private)
Sets the Stored Value data from the SV Get command

Parameters
svKvcThe KVC value.
svGetHeaderA not empty array.
svGetDataA not empty array.
svBalancethe current SV balance.
svLastTNumthe last SV transaction number.
svLoadLogRecordthe SV load log record (it may be null if not available).
svDebitLogRecordthe SV debit log record (it may be null if not available).
Since
2.0.0

Definition at line 452 of file CalypsoCardAdapter.cpp.

◆ setSvOperationSignature()

void keyple::card::calypso::CalypsoCardAdapter::setSvOperationSignature ( const std::vector< uint8_t > &  svOperationSignature)

(package-private)
Sets the SV signature.

Parameters
svOperationSignatureA not empty array.
Since
2.0.0

Definition at line 774 of file CalypsoCardAdapter.cpp.

◆ setTraceabilityInformation()

void keyple::card::calypso::CalypsoCardAdapter::setTraceabilityInformation ( const std::vector< uint8_t > &  traceabilityInformation)

(package-private)
Sets the traceability information received in response to the GET DATA command for the tag GetDataTag::TRACEABILITY_INFORMATION}.

Parameters
traceabilityInformationThe traceability information.
Since
2.1.0

Definition at line 768 of file CalypsoCardAdapter.cpp.

◆ setTransactionCounter()

void keyple::card::calypso::CalypsoCardAdapter::setTransactionCounter ( const int  transactionCounter)

(package-private)
Sets the transaction counter.

Parameters
transactionCounterThe counter value.
Since
2.1.1

Definition at line 447 of file CalypsoCardAdapter.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

KEYPLECARDCALYPSO_API std::ostream & operator<< ( std::ostream &  os,
const CalypsoCardAdapter cca 
)
friend

Definition at line 926 of file CalypsoCardAdapter.cpp.

◆ operator<< [2/2]

KEYPLECARDCALYPSO_API std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< CalypsoCardAdapter cca 
)
friend

Definition at line 968 of file CalypsoCardAdapter.cpp.


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