Interface SecuritySetting


public interface SecuritySetting
Security setting to manage operations of a legacy SAM transaction secured by a control SAM.

An instance of this interface can be obtained via the method LegacySamApiFactory.createSecuritySetting().

Since:
0.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    setControlSamResource(org.eclipse.keypop.reader.CardReader samReader, LegacySam controlSam)
    Sets the control SAM and the reader through which it can be accessed.
  • Method Details

    • setControlSamResource

      SecuritySetting setControlSamResource(org.eclipse.keypop.reader.CardReader samReader, LegacySam controlSam)
      Sets the control SAM and the reader through which it can be accessed. It will be used to perform all necessary cryptographic operations.
      Parameters:
      samReader - The reader to use to communicate with the SAM.
      controlSam - The control Legacy SAM.
      Returns:
      The current instance.
      Throws:
      IllegalArgumentException - If one of the arguments is null or if the product type of LegacySam is equal to LegacySam.ProductType.UNKNOWN.
      Since:
      0.2.0