Package google.registry.tools
Enum Class DigestType
- All Implemented Interfaces:
Serializable
,Comparable<DigestType>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<DigestType> fromWireValue
(int wireValue) Fetches a DigestType enumeration constant by its IANA assigned value.int
getBytes()
Returns the expected length in bytes of the signature.int
Fetches a value in the range [0, 255] that encodes this DS digest type on the wire.static DigestType
Returns the enum constant of this class with the specified name.static DigestType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHA1
-
SHA256
-
SHA384
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromWireValue
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.
-