Package com.pdftools.signaturevalidation
Enum TimeSource
- java.lang.Object
-
- java.lang.Enum<TimeSource>
-
- com.pdftools.signaturevalidation.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPIRED_TIME_STAMP
Expired time stampPROOF_OF_EXISTENCE
Proof of ExistenceSIGNATURE_TIME
Signature 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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-