- All Implemented Interfaces:
Serializable, Comparable<NSEC3.HashAlgorithm>, java.lang.constant.Constable
- Enclosing class:
NSEC3
DNSSEC NSEC3 Hash Algorithms.
- See Also:
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsField Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe human-readable name of the hash algorithm.final byteThe IANA registry value of the hash algorithm.Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHashAlgorithm(int value, String description) Names a hash algorithm by its wire number.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic NSEC3.HashAlgorithmforByte(byte b) Look up a hash algorithm by its registry value.static NSEC3.HashAlgorithmReturns the enum constant of this class with the specified name.static NSEC3.HashAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
RESERVED
ReservedSHA1
SHA-1
Field Details
value
public final byte valueThe IANA registry value of the hash algorithm.description
The human-readable name of the hash algorithm.
Constructor Details
HashAlgorithm
Names a hash algorithm by its wire number.- Parameters:
value- the number on the wiredescription- the human-readable name
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
forByte
Look up a hash algorithm by its registry value.- Parameters:
b- the hash algorithm byte as it appears in the record- Returns:
- the matching algorithm, or null if the byte is not registered