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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecuritySetting
setControlSamResource(org.eclipse.keypop.reader.CardReader samReader, LegacySam controlSam)
Sets the control SAM and the reader through which it can be accessed.
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException
- If one of the arguments is null or if the product type ofLegacySam
is equal toLegacySam.ProductType.UNKNOWN
.- Since:
- 0.2.0
-
-