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

public static enum DnssecConstants.DigestAlgorithmextends Enum<DnssecConstants.DigestAlgorithm>
DNSSEC Digest Algorithms.
See Also:
  • Enum Constant Details

  • Field Details

    • value

      public final byte value
      the digest algorithm value
    • description

      public final String description
      the digest algorithm description
  • Constructor Details

    • DigestAlgorithm

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

    • values

      public static DnssecConstants.DigestAlgorithm[] 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 DnssecConstants.DigestAlgorithm 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 DnssecConstants.DigestAlgorithm forByte(byte b)
      Look up a DigestAlgorithm by its byte value.
      Parameters:
      b - the digest algorithm value
      Returns:
      the matching DigestAlgorithm, or null if not found