Enum Class DigestType

All Implemented Interfaces:
Serializable, Comparable<DigestType>, Constable

public enum DigestType extends Enum<DigestType>
Enumerates the DNSSEC digest types for use with Delegation Signer records.

This also enforces the set of types that are valid for use with Cloud DNS. Customers cannot create DS records containing any other digest type.

The complete list can be found here: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml

  • 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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromWireValue

      public static Optional<DigestType> fromWireValue(int wireValue)
      Fetches a DigestType enumeration constant by its IANA assigned value.
    • getWireValue

      public int getWireValue()
      Fetches a value in the range [0, 255] that encodes this DS digest type on the wire.
    • getBytes

      public int getBytes()
      Returns the expected length in bytes of the signature.