Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
Public Member Functions | List of all members
keypop::calypso::crypto::legacysam::transaction::SecuritySetting Class Referenceabstract

#include <SecuritySetting.hpp>

Public Member Functions

virtual SecuritySettingsetControlSamResource (const std::shared_ptr< CardReader > samReader, const std::shared_ptr< LegacySam > controlSam)=0
 

Detailed Description

Security setting to manage operations of a legacy SAM transaction secured by a control SAM.

An instance of this interface can be obtained via the method LegacySamApiFactory#createSecuritySetting().

Since
0.2.0

Definition at line 34 of file SecuritySetting.hpp.

Member Function Documentation

◆ setControlSamResource()

virtual SecuritySetting & keypop::calypso::crypto::legacysam::transaction::SecuritySetting::setControlSamResource ( const std::shared_ptr< CardReader >  samReader,
const std::shared_ptr< LegacySam controlSam 
)
pure virtual

Sets the control SAM and the reader through which it can be accessed. It will be used to perform all necessary cryptographic operations.

Parameters
samReaderThe reader to use to communicate with the SAM.
controlSamThe control Legacy SAM.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf one of the arguments is null or if the product type of LegacySam is equal to LegacySam::ProductType::UNKNOWN.
Since
0.2.0

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