Package nl.sidnlabs.dnslib.types
Enum DigestType
- java.lang.Object
-
- java.lang.Enum<DigestType>
-
- nl.sidnlabs.dnslib.types.DigestType
-
- All Implemented Interfaces:
Serializable,Comparable<DigestType>
public enum DigestType extends Enum<DigestType>
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 -
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigestTypefromValue(short value)StringgetName()bytegetValue()static DigestTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DigestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESERVED
public static final DigestType RESERVED
-
SHA1
public static final DigestType SHA1
-
SHA256
public static final DigestType SHA256
-
-
Method Detail
-
values
public static DigestType[] 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 (DigestType c : DigestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DigestType 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 byte getValue()
-
fromValue
public static DigestType fromValue(short value)
-
getName
public String getName()
-
-