Package nl.sidnlabs.dnslib.types
Enum Class DigestType
- All Implemented Interfaces:
Serializable,Comparable<DigestType>,Constable
Digest Algorithms
Registration Procedures Standards Action Reference [RFC3658][RFC4034][RFC4035] Value Description
Status Reference 0 Reserved - [RFC3658] 1 SHA-1 MANDATORY [RFC3658] 2 SHA-256 MANDATORY [RFC4509]
3 GOST R 34.11-94 OPTIONAL [RFC5933] 4 SHA-384 OPTIONAL [RFC6605] 5-255 Unassigned -
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DigestTypefromValue(short value) getName()bytegetValue()static DigestTypeReturns the enum constant of this class with the specified name.static DigestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESERVED
-
SHA1
-
SHA256
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public byte getValue() -
fromValue
-
getName
-