Interface SymmetricCryptoCardTransactionManagerFactorySpi
public interface SymmetricCryptoCardTransactionManagerFactorySpi
Factory of
SymmetricCryptoCardTransactionManagerSpi.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateCardTransactionManager(byte[] cardKeyDiversifier, boolean useExtendedMode, List<byte[]> transactionAuditData) Returns a new instance ofSymmetricCryptoCardTransactionManagerSpi.intReturns the max length supported of the card APDU.booleanIndicates if the "extended" mode is supported.voidRetrieves and stores the terminal challenge in the SAM image for later use.
-
Method Details
-
isExtendedModeSupported
boolean isExtendedModeSupported()Indicates if the "extended" mode is supported.- Returns:
- True if the "extended" mode is supported, false otherwise.
- Since:
- 0.1.0
-
getMaxCardApduLengthSupported
int getMaxCardApduLengthSupported()Returns the max length supported of the card APDU.- Returns:
- A positive value.
- Since:
- 0.1.0
-
preInitTerminalSessionContext
Retrieves and stores the terminal challenge in the SAM image for later use.- Throws:
SymmetricCryptoException- If an internal error occurred.SymmetricCryptoIOException- If an IO error occurred when processing a command.- Since:
- 0.1.0
-
createCardTransactionManager
SymmetricCryptoCardTransactionManagerSpi createCardTransactionManager(byte[] cardKeyDiversifier, boolean useExtendedMode, List<byte[]> transactionAuditData) Returns a new instance ofSymmetricCryptoCardTransactionManagerSpi.- Parameters:
cardKeyDiversifier- The card key diversifier to use for the coming cryptographic computations.useExtendedMode- Request the use of the extended mode if supported by the crypto service.transactionAuditData- The reference of the list where the transaction audit data are recorded.- Returns:
- A new instance of
SymmetricCryptoCardTransactionManagerSpi. - Throws:
IllegalStateException- If the extended mode is not supported.- Since:
- 0.1.0
-