![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CardSecuritySettingAdapter.h>
Public Member Functions | |
CardSecuritySettingAdapter () | |
CardSecuritySetting & | setSamResource (const std::shared_ptr< CardReader > samReader, const std::shared_ptr< CalypsoSam > calypsoSam) override |
CardSecuritySettingAdapter & | enableMultipleSession () override |
CardSecuritySettingAdapter & | enableRatificationMechanism () override |
CardSecuritySettingAdapter & | enablePinPlainTransmission () override |
CardSecuritySettingAdapter & | enableTransactionAudit () override |
CardSecuritySettingAdapter & | enableSvLoadAndDebitLog () override |
CardSecuritySettingAdapter & | authorizeSvNegativeBalance () override |
CardSecuritySettingAdapter & | assignKif (const WriteAccessLevel writeAccessLevel, const uint8_t kvc, const uint8_t kif) override |
CardSecuritySettingAdapter & | assignDefaultKif (const WriteAccessLevel writeAccessLevel, const uint8_t kif) override |
CardSecuritySettingAdapter & | assignDefaultKvc (const WriteAccessLevel writeAccessLevel, const uint8_t kvc) override |
CardSecuritySettingAdapter & | addAuthorizedSessionKey (const uint8_t kif, const uint8_t kvc) override |
CardSecuritySettingAdapter & | addAuthorizedSvKey (const uint8_t kif, const uint8_t kvc) override |
CardSecuritySettingAdapter & | setPinVerificationCipheringKey (const uint8_t kif, const uint8_t kvc) override |
CardSecuritySettingAdapter & | setPinModificationCipheringKey (const uint8_t kif, const uint8_t kvc) override |
std::shared_ptr< CardReader > | getSamReader () const |
std::shared_ptr< CalypsoSam > | getCalypsoSam () const |
bool | isMultipleSessionEnabled () const |
bool | isRatificationMechanismEnabled () const |
bool | isPinPlainTransmissionEnabled () const |
bool | isTransactionAuditEnabled () const |
bool | isSvLoadAndDebitLogEnabled () const |
bool | isSvNegativeBalanceAuthorized () const |
const std::shared_ptr< uint8_t > | getKif (const WriteAccessLevel writeAccessLevel, const uint8_t kvc) const |
const std::shared_ptr< uint8_t > | getDefaultKif (const WriteAccessLevel writeAccessLevel) const |
const std::shared_ptr< uint8_t > | getDefaultKvc (const WriteAccessLevel writeAccessLevel) const |
bool | isSessionKeyAuthorized (const std::shared_ptr< uint8_t > kif, const std::shared_ptr< uint8_t > kvc) const |
bool | isSvKeyAuthorized (const std::shared_ptr< uint8_t > kif, const std::shared_ptr< uint8_t > kvc) const |
const std::shared_ptr< uint8_t > | getPinVerificationCipheringKif () const |
const std::shared_ptr< uint8_t > | getPinVerificationCipheringKvc () const |
const std::shared_ptr< uint8_t > | getPinModificationCipheringKif () const |
const std::shared_ptr< uint8_t > | getPinModificationCipheringKvc () const |
(package-private)
Implementation of CardSecuritySetting.
Definition at line 45 of file CardSecuritySettingAdapter.h.
keyple::card::calypso::CardSecuritySettingAdapter::CardSecuritySettingAdapter | ( | ) |
(package-private)
Constructor.
Definition at line 30 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 119 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 127 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 103 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 111 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 94 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 87 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 52 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 66 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 59 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 80 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 73 of file CardSecuritySettingAdapter.cpp.
std::shared_ptr< CalypsoSam > keyple::card::calypso::CardSecuritySettingAdapter::getCalypsoSam | ( | ) | const |
(package-private)
Gets the SAM used for secured operations.
Definition at line 158 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getDefaultKif | ( | const WriteAccessLevel | writeAccessLevel | ) | const |
(package-private)
Gets the default KIF value for the provided write access level.
writeAccessLevel | The write access level. |
IllegalArgumentException | If the provided argument is null. |
Definition at line 209 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getDefaultKvc | ( | const WriteAccessLevel | writeAccessLevel | ) | const |
(package-private)
Gets the default KVC value for the provided write access level.
writeAccessLevel | The write access level. |
IllegalArgumentException | If the provided argument is null. |
Definition at line 220 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getKif | ( | const WriteAccessLevel | writeAccessLevel, |
const uint8_t | kvc | ||
) | const |
(package-private)
Gets the KIF value to use for the provided write access level and KVC value.
writeAccessLevel | The write access level. |
kvc | The KVC value. |
IllegalArgumentException | If the provided writeAccessLevel is null. |
Definition at line 193 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getPinModificationCipheringKif | ( | ) | const |
(package-private)
Gets the KIF value of the PIN modification ciphering key.
Definition at line 271 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getPinModificationCipheringKvc | ( | ) | const |
(package-private)
Gets the KVC value of the PIN modification ciphering key.
Definition at line 276 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getPinVerificationCipheringKif | ( | ) | const |
(package-private)
Gets the KIF value of the PIN verification ciphering key.
Definition at line 261 of file CardSecuritySettingAdapter.cpp.
const std::shared_ptr< uint8_t > keyple::card::calypso::CardSecuritySettingAdapter::getPinVerificationCipheringKvc | ( | ) | const |
(package-private)
Gets the KVC value of the PIN verification ciphering key.
Definition at line 266 of file CardSecuritySettingAdapter.cpp.
std::shared_ptr< CardReader > keyple::card::calypso::CardSecuritySettingAdapter::getSamReader | ( | ) | const |
(package-private)
Gets the associated SAM reader to use for secured operations.
Definition at line 153 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isMultipleSessionEnabled | ( | ) | const |
(package-private)
Indicates if the multiple session mode is enabled.
Definition at line 163 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isPinPlainTransmissionEnabled | ( | ) | const |
(package-private)
Indicates if the transmission of the PIN in plain text is enabled.
Definition at line 173 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isRatificationMechanismEnabled | ( | ) | const |
(package-private)
Indicates if the ratification mechanism is enabled.
Definition at line 168 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isSessionKeyAuthorized | ( | const std::shared_ptr< uint8_t > | kif, |
const std::shared_ptr< uint8_t > | kvc | ||
) | const |
(package-private)
Indicates if the KIF/KVC pair is authorized for a session.
kif | The KIF value. |
kvc | The KVC value. |
Definition at line 231 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isSvKeyAuthorized | ( | const std::shared_ptr< uint8_t > | kif, |
const std::shared_ptr< uint8_t > | kvc | ||
) | const |
(package-private)
Indicates if the KIF/KVC pair is authorized for a SV operation.
kif | The KIF value. |
kvc | The KVC value. |
Definition at line 246 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isSvLoadAndDebitLogEnabled | ( | ) | const |
(package-private)
Indicates if the retrieval of both load and debit log is enabled.
Definition at line 183 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isSvNegativeBalanceAuthorized | ( | ) | const |
(package-private)
Indicates if the SV balance is allowed to become negative.
Definition at line 188 of file CardSecuritySettingAdapter.cpp.
bool keyple::card::calypso::CardSecuritySettingAdapter::isTransactionAuditEnabled | ( | ) | const |
(package-private)
Indicates if the transaction audit is enabled.
Definition at line 178 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 144 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 135 of file CardSecuritySettingAdapter.cpp.
|
override |
Definition at line 38 of file CardSecuritySettingAdapter.cpp.