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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.S
setSamRevocationService(SamRevocationServiceSpi service)
Sets the service to be used to dynamically check if a SAM is revoked or not.
-
-
-
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 ofCalypsoSam
is equal toCalypsoSam.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
-
-