Enum Class DigestType

java.lang.Object
java.lang.Enum<DigestType>
nl.sidnlabs.dnslib.types.DigestType
All Implemented Interfaces:
Serializable, Comparable<DigestType>, Constable

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 -
  • Enum Constant Details

  • Method Details

    • values

      public static DigestType[] 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

      public static DigestType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public byte getValue()
    • fromValue

      public static DigestType fromValue(short value)
    • getName

      public String getName()