java.lang.Object
java.lang.Enum<NSEC3.HashAlgorithm>
org.minidns.record.NSEC3.HashAlgorithm
All Implemented Interfaces:
Serializable, Comparable<NSEC3.HashAlgorithm>, java.lang.constant.Constable
Enclosing class:
NSEC3

public static enum NSEC3.HashAlgorithmextends Enum<NSEC3.HashAlgorithm>
DNSSEC NSEC3 Hash Algorithms.
See Also:
  • Enum Constant Details

  • Field Details

    • value

      public final byte value
      The IANA registry value of the hash algorithm.
    • description

      public final String description
      The human-readable name of the hash algorithm.
  • Constructor Details

    • HashAlgorithm

      private HashAlgorithm(int value, String description)
      Names a hash algorithm by its wire number.
      Parameters:
      value - the number on the wire
      description - the human-readable name
  • Method Details

    • values

      public static NSEC3.HashAlgorithm[] 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 NSEC3.HashAlgorithm 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
    • forByte

      public static NSEC3.HashAlgorithm forByte(byte b)
      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