Interface SymmetricCryptoCardTransactionManagerFactorySpi


public interface SymmetricCryptoCardTransactionManagerFactorySpi
Since:
0.1.0
  • 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

      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, List<byte[]> transactionAuditData)
      Returns a new instance of SymmetricCryptoCardTransactionManagerSpi.
      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