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

#include <CmdCardChangeKey.h>

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

Public Member Functions

 CmdCardChangeKey (const CalypsoCardClass calypsoCardClass, const uint8_t keyIndex, const std::vector< uint8_t > &cryptogram)
 
bool isSessionBufferUsed () const override
 
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractCardCommand
 AbstractCardCommand (const CalypsoCardCommand &commandRef)
 
const CalypsoCardCommandgetCommandRef () const override
 
const CalypsoApduCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
 
AbstractCardCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 AbstractApduCommand (const CardCommand &commandRef)
 
virtual void addSubName (const std::string &subName) final
 
virtual const std::string & getName () const final
 
virtual void setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final
 
virtual const std::shared_ptr< ApduRequestAdaptergetApduRequest () const final
 
virtual const std::shared_ptr< ApduResponseApi > getApduResponse () const final
 
virtual bool isSuccessful () const final
 
virtual const std::string getStatusInformation () const final
 

Additional Inherited Members

- Static Public Attributes inherited from keyple::card::calypso::AbstractApduCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

(package-private)
Builds the Change key APDU command.

Since
2.1.0

Definition at line 50 of file CmdCardChangeKey.h.

Constructor & Destructor Documentation

◆ CmdCardChangeKey()

keyple::card::calypso::CmdCardChangeKey::CmdCardChangeKey ( const CalypsoCardClass  calypsoCardClass,
const uint8_t  keyIndex,
const std::vector< uint8_t > &  cryptogram 
)

(package-private)
Change Key Calypso command

Parameters
calypsoCardClassindicates which CLA byte should be used for the Apdu.
keyIndexindex of the key of the current DF to change.
cryptogramkey encrypted with Issuer key (key #1).
Since
2.1.0

Definition at line 37 of file CmdCardChangeKey.cpp.

Member Function Documentation

◆ getStatusTable()

const std::map< const int, const std::shared_ptr< StatusProperties > > & keyple::card::calypso::CmdCardChangeKey::getStatusTable ( ) const
overridevirtual

(package-private)
Returns the internal status table

Returns
A not null reference
Since
2.0.1

Since
2.1.0

Reimplemented from keyple::card::calypso::AbstractApduCommand.

Definition at line 93 of file CmdCardChangeKey.cpp.

◆ isSessionBufferUsed()

bool keyple::card::calypso::CmdCardChangeKey::isSessionBufferUsed ( ) const
overridevirtual

(package-private)
Indicates if the session buffer is used when executing this command.Allows the management of the overflow of this buffer.

Returns
True if this command uses the session buffer
Since
2.0.1

Returns
false
Since
2.1.0

Implements keyple::card::calypso::AbstractCardCommand.

Definition at line 50 of file CmdCardChangeKey.cpp.


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