Package net.jsign.timestamp
Enum TimestampingMode
- java.lang.Object
-
- java.lang.Enum<TimestampingMode>
-
- net.jsign.timestamp.TimestampingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<TimestampingMode>
public enum TimestampingMode extends Enum<TimestampingMode>
Enumeration of the timestamping modes.- Since:
- 1.3
- Author:
- Emmanuel Bourg
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICODE
Legacy Microsoft Authenticode timestampingRFC3161
RFC 3161 timestamping
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimestampingMode
of(String mode)
static TimestampingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimestampingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHENTICODE
public static final TimestampingMode AUTHENTICODE
Legacy Microsoft Authenticode timestamping
-
RFC3161
public static final TimestampingMode RFC3161
RFC 3161 timestamping
-
-
Method Detail
-
values
public static TimestampingMode[] 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 (TimestampingMode c : TimestampingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimestampingMode 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 nameNullPointerException
- if the argument is null
-
of
public static TimestampingMode of(String mode)
-
-