Package eu.europa.esig.dss.tsl.sync
Class ExpirationAndSignatureCheckStrategy
java.lang.Object
eu.europa.esig.dss.tsl.sync.ExpirationAndSignatureCheckStrategy
- All Implemented Interfaces:
SynchronizationStrategy
Allows skipping expired or invalid trusted lists
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeSynchronized
(LOTLInfo listOfTrustedList) Returns true if the certificates from the list of trusted lists and its trusted list can be synchronizedboolean
canBeSynchronized
(TLInfo trustedList) Returns true if the certificates from the trusted list can be synchronizedvoid
setAcceptExpiredListOfTrustedLists
(boolean acceptExpiredListOfTrustedLists) Sets if expired list of trusted lists and their TLs are supported (next update after current time)void
setAcceptExpiredTrustedList
(boolean acceptExpiredTrustedList) Sets if expired trusted lists are supported (next update after current time)void
setAcceptInvalidListOfTrustedLists
(boolean acceptInvalidListOfTrustedLists) Sets if invalid list of trusted lists and their TLs are supported (signature with FAILED or INDETERMINATE Indication)void
setAcceptInvalidTrustedList
(boolean acceptInvalidTrustedList) Sets if invalid trusted lists are supported (signature with FAILED or INDETERMINATE Indication)
-
Constructor Details
-
ExpirationAndSignatureCheckStrategy
public ExpirationAndSignatureCheckStrategy()Default constructor instantiating object with null values
-
-
Method Details
-
setAcceptExpiredTrustedList
public void setAcceptExpiredTrustedList(boolean acceptExpiredTrustedList) Sets if expired trusted lists are supported (next update after current time)- Parameters:
acceptExpiredTrustedList
- true/false if expired trusted lists can be synchronized
-
setAcceptInvalidTrustedList
public void setAcceptInvalidTrustedList(boolean acceptInvalidTrustedList) Sets if invalid trusted lists are supported (signature with FAILED or INDETERMINATE Indication)- Parameters:
acceptInvalidTrustedList
- true/false if invalid trusted lists can be synchronized
-
setAcceptExpiredListOfTrustedLists
public void setAcceptExpiredListOfTrustedLists(boolean acceptExpiredListOfTrustedLists) Sets if expired list of trusted lists and their TLs are supported (next update after current time)- Parameters:
acceptExpiredListOfTrustedLists
- true/false if expired list of trusted lists can be synchronized
-
setAcceptInvalidListOfTrustedLists
public void setAcceptInvalidListOfTrustedLists(boolean acceptInvalidListOfTrustedLists) Sets if invalid list of trusted lists and their TLs are supported (signature with FAILED or INDETERMINATE Indication)- Parameters:
acceptInvalidListOfTrustedLists
- true/false if invalid list of trusted lists can be synchronized
-
canBeSynchronized
Description copied from interface:SynchronizationStrategy
Returns true if the certificates from the trusted list can be synchronized- Specified by:
canBeSynchronized
in interfaceSynchronizationStrategy
- Parameters:
trustedList
- the trusted list to be tested- Returns:
- true if the trusted list can be synchronized
-
canBeSynchronized
Description copied from interface:SynchronizationStrategy
Returns true if the certificates from the list of trusted lists and its trusted list can be synchronized- Specified by:
canBeSynchronized
in interfaceSynchronizationStrategy
- Parameters:
listOfTrustedList
- the list of trusted lists to be tested- Returns:
- true if the list of trusted lists can be synchronized
-