java.lang.Object
java.lang.Enum<DnssecConstants.DigestAlgorithm>
org.minidns.constants.DnssecConstants.DigestAlgorithm
- All Implemented Interfaces:
Serializable, Comparable<DnssecConstants.DigestAlgorithm>, java.lang.constant.Constable
- Enclosing class:
DnssecConstants
DNSSEC Digest Algorithms.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsField Summary
FieldsModifier and TypeFieldDescriptionfinal Stringthe digest algorithm descriptionfinal bytethe digest algorithm valueConstructor Summary
ConstructorsModifierConstructorDescriptionprivateDigestAlgorithm(int value, String description) Names a digest by its wire number.Method Summary
All MethodsModifier and TypeMethodDescriptionforByte(byte b) Look up a DigestAlgorithm by its byte value.Returns the enum constant of this class with the specified name.static DnssecConstants.DigestAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SHA1
SHA-1SHA256
SHA-256GOST
GOST R 34.11-94SHA384
SHA-384
Field Details
value
public final byte valuethe digest algorithm valuedescription
the digest algorithm description
Constructor Details
DigestAlgorithm
Names a digest 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 DigestAlgorithm by its byte value.- Parameters:
b- the digest algorithm value- Returns:
- the matching DigestAlgorithm, or null if not found