23#include "keypop/reader/selection/spi/SmartCard.hpp"
31using keypop::reader::selection::spi::SmartCard;
177 virtual std::shared_ptr<int>
getCounter(
const int counterNumber)
const = 0;
213 virtual std::shared_ptr<int>
261 virtual std::shared_ptr<KeyParameter>
276 virtual std::shared_ptr<KeyParameter>
292 virtual std::shared_ptr<KeyParameter>
Extends the SmartCard interface of the "Keypop Reader API" to provide additional functionality specif...
virtual std::shared_ptr< KeyParameter > getSystemKeyParameter(const SystemKeyType systemKeyType) const =0
Returns the parameters of the system key for the specified key type.
virtual uint8_t getSoftwareRevision() const =0
Returns the software revision number.
virtual const std::map< const int, int > & getCounters() const =0
Returns the value of known counters in a sorted map where.
virtual const std::vector< uint8_t > & getCaCertificate() const =0
Returns the CA certificate retrieved from the SAM as a 384-byte byte array.
virtual uint8_t getApplicationType() const =0
Returns the application type.
virtual std::shared_ptr< KeyParameter > getWorkKeyParameter(const int recordNumber) const =0
Returns the parameters of the work key referenced by its record number.
virtual uint8_t getSoftwareVersion() const =0
Returns the software version number.
virtual std::shared_ptr< SamParameters > getSamParameters() const =0
Returns the SAM parameters retrieved from the SAM.
virtual std::shared_ptr< KeyParameter > getWorkKeyParameter(const uint8_t kif, const uint8_t kvc) const =0
Returns the parameters of the work key referenced by its KIF and KVC.
virtual CounterIncrementAccess getCounterIncrementAccess(const int counterNumber) const =0
Returns the counter increment access mode.
virtual ProductType getProductType() const =0
Returns the SAM product type.
virtual uint8_t getApplicationSubType() const =0
Returns the application subtype.
virtual uint8_t getPlatform() const =0
Returns the platform identifier.
virtual std::shared_ptr< int > getCounter(const int counterNumber) const =0
Returns the value of a counter.
virtual uint8_t getSoftwareIssuer() const =0
Returns the software issuer identifier.
virtual std::string getProductInfo() const =0
Returns a text description of the SAM.
virtual const std::map< const int, int > & getCounterCeilings() const =0
Returns the value of known counter ceilings in a sorted map where.
virtual std::shared_ptr< int > getCounterCeiling(const int counterNumber) const =0
Returns the value of a counter ceiling.
ProductType
All Calypso SAM products supported by this API.
@ UNKNOWN
Unidentified smart card.
@ NONE
No product type (= null)
virtual const std::vector< uint8_t > & getSerialNumber() const =0
Returns the SAM serial number as a byte array.
CounterIncrementAccess
Enumeration of the different possible access rights for incrementing event counters.
SystemKeyType
Enumeration of the system key types of a Legacy Sam.