Interface SymmetricCryptoCardTransactionManagerFactorySpi
-
public interface SymmetricCryptoCardTransactionManagerFactorySpi
Factory ofSymmetricCryptoCardTransactionManagerSpi
.- Since:
- 0.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SymmetricCryptoCardTransactionManagerSpi
createCardTransactionManager(byte[] cardKeyDiversifier, boolean useExtendedMode, java.util.List<byte[]> transactionAuditData)
Returns a new instance ofSymmetricCryptoCardTransactionManagerSpi
.int
getMaxCardApduLengthSupported()
Returns the max length supported of the card APDU.boolean
isExtendedModeSupported()
Indicates if the "extended" mode is supported.void
preInitTerminalSessionContext()
Retrieves and stores the terminal challenge in the SAM image for later use.
-
-
-
Method Detail
-
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
void preInitTerminalSessionContext() throws SymmetricCryptoException, SymmetricCryptoIOException
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, java.util.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:
java.lang.IllegalStateException
- If the extended mode is not supported.- Since:
- 0.1.0
-
-