Class ValidAtTimeKeyEntryPredicate
java.lang.Object
eu.europa.esig.dss.token.predicate.ValidAtTimeKeyEntryPredicate
- All Implemented Interfaces:
DSSKeyEntryPredicate
,Predicate<DSSPrivateKeyEntry>
This predicate is used to filter keys based on the validity range of the certificate
-
Constructor Summary
ConstructorDescriptionConstructor instantiating the object with the current timeValidAtTimeKeyEntryPredicate
(Date validationTime) Default constructor with the defined validation time -
Method Summary
-
Constructor Details
-
ValidAtTimeKeyEntryPredicate
public ValidAtTimeKeyEntryPredicate()Constructor instantiating the object with the current time -
ValidAtTimeKeyEntryPredicate
Default constructor with the defined validation time- Parameters:
validationTime
-Date
representing a time to check the validity range of the certificate against (i.e. notBefore - notAfter). If the time is outside the validity range for the corresponding certificate, the key is not returned.
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<DSSPrivateKeyEntry>
-