Keypop Calypso Card C++ API 2.0.0
Reference Calypso Card API for C++
Public Member Functions | List of all members
keypop::calypso::card::transaction::SecureTransactionManager< T > Class Template Referenceabstract

#include <SecureTransactionManager.hpp>

Inheritance diagram for keypop::calypso::card::transaction::SecureTransactionManager< T >:
Inheritance graph
[legend]

Public Member Functions

virtual std::shared_ptr< CardTransactionCryptoExtension > getCryptoExtension (const std::type_info &cryptoExtensionClass)=0
 
virtual SecureTransactionManagerprepareCloseSecureSession ()=0
 
virtual SecureTransactionManagerprepareCancelSecureSession ()=0
 

Detailed Description

template<typename T>
class keypop::calypso::card::transaction::SecureTransactionManager< T >

Contains operations common to all card transactions secured by cryptographic algorithms.

See TransactionManager parent interface for more information and details of others available card operations.

Parameters
<T>The type of the lowest level child object.
Since
2.0.0

Definition at line 29 of file SecureTransactionManager.hpp.

Member Function Documentation

◆ getCryptoExtension()

template<typename T >
virtual std::shared_ptr< CardTransactionCryptoExtension > keypop::calypso::card::transaction::SecureTransactionManager< T >::getCryptoExtension ( const std::type_info &  cryptoExtensionClass)
pure virtual

Returns the associated CardTransactionCryptoExtension instance.

Parameters
cryptoExtensionClassThe class of the crypto extension.
<E>The generic type of the expected crypto extension.
Returns
A non-null CardTransactionCryptoExtension.
Exceptions
IllegalArgumentExceptionIf the provided class is null.
Since
2.0.0

◆ prepareCancelSecureSession()

template<typename T >
virtual SecureTransactionManager & keypop::calypso::card::transaction::SecureTransactionManager< T >::prepareCancelSecureSession ( )
pure virtual

Schedules the execution of a special "Close Secure Session" command in order to abort the current secure session.

This command will be executed in safe mode and will not raise any exceptions.

Returns
The current instance.
Since
1.6.0

◆ prepareCloseSecureSession()

template<typename T >
virtual SecureTransactionManager & keypop::calypso::card::transaction::SecureTransactionManager< T >::prepareCloseSecureSession ( )
pure virtual

Schedules the execution of a "Close Secure Session" command.

The ratification mechanism is disabled by default but can be enabled via the SymmetricCryptoSecuritySetting#enableRatificationMechanism() method.

In this case, a ratification command is added after the "Close Secure Session" command when the communication is done in contactless mode.

Returns
The current instance.
Exceptions
IllegalStateExceptionIn the following cases:
  • No secure session is opened and no secure session opening is prepared
  • A secure session closing is already prepared
  • A secure session canceling is prepared
Since
1.6.0

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