Class ValidAtTimeKeyEntryPredicate

java.lang.Object
eu.europa.esig.dss.token.predicate.ValidAtTimeKeyEntryPredicate
All Implemented Interfaces:
DSSKeyEntryPredicate, Predicate<DSSPrivateKeyEntry>

public class ValidAtTimeKeyEntryPredicate extends Object implements DSSKeyEntryPredicate
This predicate is used to filter keys based on the validity range of the certificate
  • Constructor Details

    • ValidAtTimeKeyEntryPredicate

      public ValidAtTimeKeyEntryPredicate()
      Constructor instantiating the object with the current time
    • ValidAtTimeKeyEntryPredicate

      public ValidAtTimeKeyEntryPredicate(Date validationTime)
      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