#include <AbstractSamResponseParser.h>
Inherits keyple::core::command::AbstractApduResponseParser.
Inherited by keyple::calypso::command::sam::parser::security::CardCipherPinRespPars, keyple::calypso::command::sam::parser::security::CardGenerateKeyRespPars, keyple::calypso::command::sam::parser::security::DigestAuthenticateRespPars, keyple::calypso::command::sam::parser::security::DigestCloseRespPars, keyple::calypso::command::sam::parser::security::DigestInitRespPars, keyple::calypso::command::sam::parser::security::DigestUpdateMultipleRespPars, keyple::calypso::command::sam::parser::security::DigestUpdateRespPars, keyple::calypso::command::sam::parser::security::GiveRandomRespPars, keyple::calypso::command::sam::parser::security::SamGetChallengeRespPars, keyple::calypso::command::sam::parser::security::SamReadCeilingsRespPars, keyple::calypso::command::sam::parser::security::SamReadEventCounterRespPars, keyple::calypso::command::sam::parser::security::SamReadKeyParametersRespPars, keyple::calypso::command::sam::parser::security::SamWriteKeyRespPars, keyple::calypso::command::sam::parser::security::SelectDiversifierRespPars, keyple::calypso::command::sam::parser::security::SvCheckRespPars, keyple::calypso::command::sam::parser::security::SvPrepareOperationRespPars, and keyple::calypso::command::sam::parser::security::UnlockRespPars.
◆ AbstractSamResponseParser() [1/2]
Constructor to build a parser of the APDU response.
- Parameters
-
response | response to parse |
builder | the reference of the builder that created the parser |
◆ AbstractSamResponseParser() [2/2]
keyple::calypso::command::sam::AbstractSamResponseParser::AbstractSamResponseParser |
( |
const AbstractSamResponseParser & |
asrp | ) |
|
|
default |
Copy constructor
Required by macOS/CLang
◆ ~AbstractSamResponseParser()
virtual keyple::calypso::command::sam::AbstractSamResponseParser::~AbstractSamResponseParser |
( |
| ) |
|
|
virtualdefault |
◆ buildCommandException()
const KeypleSeCommandException keyple::calypso::command::sam::AbstractSamResponseParser::buildCommandException |
( |
const std::type_info & |
exceptionClass, |
|
|
const std::string & |
message, |
|
|
const std::shared_ptr< SeCommand > |
commandRef, |
|
|
const int |
statusCode |
|
) |
| const |
|
overrideprotectedvirtual |
Build a command exception.
This method should be override in subclasses in order to create specific exceptions.
- Parameters
-
exceptionClass | the exception class |
message | the message |
commandRef | the command reference |
statusCode | the status code |
- Returns
- a new instance not null
Reimplemented from keyple::core::command::AbstractApduResponseParser.
◆ checkStatus()
void keyple::calypso::command::sam::AbstractSamResponseParser::checkStatus |
( |
| ) |
const |
|
overridevirtual |
◆ getBuilder()
◆ getStatusTable()
const std::map< int, std::shared_ptr< StatusProperties > > & keyple::calypso::command::sam::AbstractSamResponseParser::getStatusTable |
( |
| ) |
const |
|
overrideprotectedvirtual |
- Returns
- the internal status table
Reimplemented from keyple::core::command::AbstractApduResponseParser.
Reimplemented in keyple::calypso::command::sam::parser::security::UnlockRespPars, keyple::calypso::command::sam::parser::security::SvPrepareOperationRespPars, keyple::calypso::command::sam::parser::security::SvCheckRespPars, keyple::calypso::command::sam::parser::security::SelectDiversifierRespPars, keyple::calypso::command::sam::parser::security::SamWriteKeyRespPars, keyple::calypso::command::sam::parser::security::SamReadKeyParametersRespPars, keyple::calypso::command::sam::parser::security::SamReadEventCounterRespPars, keyple::calypso::command::sam::parser::security::SamReadCeilingsRespPars, keyple::calypso::command::sam::parser::security::SamGetChallengeRespPars, keyple::calypso::command::sam::parser::security::GiveRandomRespPars, keyple::calypso::command::sam::parser::security::DigestUpdateRespPars, keyple::calypso::command::sam::parser::security::DigestUpdateMultipleRespPars, keyple::calypso::command::sam::parser::security::DigestInitRespPars, keyple::calypso::command::sam::parser::security::DigestCloseRespPars, keyple::calypso::command::sam::parser::security::DigestAuthenticateRespPars, keyple::calypso::command::sam::parser::security::CardGenerateKeyRespPars, and keyple::calypso::command::sam::parser::security::CardCipherPinRespPars.
◆ STATUS_TABLE
const std::map< int, std::shared_ptr< StatusProperties > > keyple::calypso::command::sam::AbstractSamResponseParser::STATUS_TABLE |
|
staticprotected |
Initial value:= {
{
0x6D00,
std::make_shared<StatusProperties>("Instruction unknown.",
typeid(CalypsoSamIllegalParameterException))
}, {
0x6E00,
std::make_shared<StatusProperties>("Class not supported.",
typeid(CalypsoSamIllegalParameterException))
}, {
0x9000,
std::make_shared<StatusProperties>("Success")
}
}
The documentation for this class was generated from the following files: