Interface CommonSecuritySetting<S extends CommonSecuritySetting<S>>

  • Type Parameters:
    S - The type of the lowest level child object.
    All Known Subinterfaces:
    CardSecuritySetting, SamSecuritySetting

    public interface CommonSecuritySetting<S extends CommonSecuritySetting<S>>
    Common data to manage the security operations of a Calypso transaction.
    Since:
    1.2.0
    • Method Detail

      • setControlSamResource

        S setControlSamResource​(org.calypsonet.terminal.reader.CardReader samReader,
                                CalypsoSam calypsoSam)
        Defines the control SAM and the reader through which it is accessible to be used to handle the relevant cryptographic operations.
        Parameters:
        samReader - The control SAM reader.
        calypsoSam - The control Calypso SAM.
        Returns:
        The current instance.
        Throws:
        java.lang.IllegalArgumentException - If one of the arguments is null or if the product type of CalypsoSam is equal to CalypsoSam.ProductType.UNKNOWN.
        Since:
        1.2.0
      • setSamRevocationService

        S setSamRevocationService​(SamRevocationServiceSpi service)
        Sets the service to be used to dynamically check if a SAM is revoked or not.
        Parameters:
        service - The user's service to be used.
        Returns:
        The current instance.
        Throws:
        java.lang.IllegalArgumentException - If the provided service is null.
        Since:
        1.2.0