Enum TimeSource

  • All Implemented Interfaces:
    Flag, java.io.Serializable, java.lang.Comparable<TimeSource>

    public enum TimeSource
    extends java.lang.Enum<TimeSource>
    implements Flag

    The source of the validation time

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TimeSource valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TimeSource[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static TimeSource[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TimeSource c : TimeSource.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TimeSource valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null