Enum TimestampHashAlgorithms
- java.lang.Object
-
- java.lang.Enum<TimestampHashAlgorithms>
-
- com.ironsoftware.ironpdf.signature.TimestampHashAlgorithms
-
- All Implemented Interfaces:
Serializable,Comparable<TimestampHashAlgorithms>
public enum TimestampHashAlgorithms extends Enum<TimestampHashAlgorithms>
Algorithm requested from the RFC 3161 time-stamping server for the message imprint. Defaults to SHA-256.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static TimestampHashAlgorithmsvalueOf(String name)Returns the enum constant of this type with the specified name.static TimestampHashAlgorithms[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHA1
public static final TimestampHashAlgorithms SHA1
SHA-1 algorithm.
-
SHA256
public static final TimestampHashAlgorithms SHA256
SHA-256 algorithm.
-
SHA512
public static final TimestampHashAlgorithms SHA512
SHA-512 algorithm.
-
-
Method Detail
-
values
public static TimestampHashAlgorithms[] 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 (TimestampHashAlgorithms c : TimestampHashAlgorithms.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimestampHashAlgorithms 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
-
getValue
public int getValue()
-
-