Interface SecureExtendedModeTransactionManager

    • Method Detail

      • prepareEarlyMutualAuthentication

        SecureExtendedModeTransactionManager prepareEarlyMutualAuthentication()
        Requests to mutually authenticate the card and the terminal before the secure session is closed.

        This ensures the authenticity of the card before sending sensitive commands.

        The use of this feature will penalize the execution time of the secure session and should therefore be used only for the case mentioned above. As a reminder, closing the secure session also performs a mutual authentication of the card and the terminal.

        When it is needed, it is advised to use this command only once at the beginning of the secure session.

        Returns:
        The current instance.
        Throws:
        java.lang.UnsupportedOperationException - The "Manage Secure Session" command is not available for this context (Card and/or CRYPTOGRAPHIC MODULE does not support the extended mode).
        Since:
        1.5.0
        See Also:
        prepareActivateEncryption(), prepareDeactivateEncryption()
      • prepareActivateEncryption

        SecureExtendedModeTransactionManager prepareActivateEncryption()
        Requests the encryption of all following commands.

        This ensures data confidentiality and prevents man-in-the-middle attacks.

        The use of data encryption is resource intensive and increases transaction times. It is therefore recommended to limit encryption to commands that require it.

        Furthermore, if mutual authentication is also required, for performance reasons, it is advised to place the prepareEarlyMutualAuthentication and prepareActivateEncryption calls consecutively (in any order) for optimization purpose.

        This command only makes sense in the context of a secure session.

        Returns:
        The current instance.
        Throws:
        java.lang.UnsupportedOperationException - The "Manage Secure Session" command is not available for this context (Card and/or cryptographic module does not support the extended mode).
        Since:
        1.5.0
        See Also:
        prepareDeactivateEncryption(), prepareEarlyMutualAuthentication()