Enum TimeSource

java.lang.Object
java.lang.Enum<TimeSource>
com.pdftools.signaturevalidation.TimeSource
All Implemented Interfaces:
Flag, Serializable, Comparable<TimeSource>

public enum TimeSource extends Enum<TimeSource> implements Flag

The source of the validation time

  • Enum Constant Details

    • PROOF_OF_EXISTENCE

      public static final TimeSource PROOF_OF_EXISTENCE

      Proof of Existence

      A proof of existence is evidence that proves that an object (a certificate, a CRL, signature value, hash value, etc.) existed at a specific time, which may be a time in the past. The presence of a given object at the current time is a proof of its existence at the current time. A suitable way of providing proof of existence of an object at a time in the past is to generate a time-stamp for that object.
    • EXPIRED_TIME_STAMP

      public static final TimeSource EXPIRED_TIME_STAMP

      Expired time stamp

      An expired time-stamp was used. Note that for expired time-stamps revocation information checks might not be possible.
    • SIGNATURE_TIME

      public static final TimeSource SIGNATURE_TIME

      Signature time

      Use the claimed (untrusted) time of the signature.
  • Method Details

    • values

      public static TimeSource[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TimeSource valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null