Interface SecureTransactionManager<T extends SecureTransactionManager<T>>

    • Method Detail

      • getCryptoExtension

        <E extends CardTransactionCryptoExtension> E getCryptoExtension​(java.lang.Class<E> cryptoExtensionClass)
        Returns the associated CardTransactionCryptoExtension instance.
        Type Parameters:
        E - The generic type of the expected crypto extension.
        Parameters:
        cryptoExtensionClass - The class of the crypto extension.
        Returns:
        A non-null CardTransactionCryptoExtension.
        Throws:
        java.lang.IllegalArgumentException - If the provided class is null.
        Since:
        2.0.0
      • prepareCloseSecureSession

        T prepareCloseSecureSession()
        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.
        Throws:
        java.lang.IllegalStateException - In 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
      • prepareCancelSecureSession

        T prepareCancelSecureSession()
        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