Package org.xbill.DNS
Class ZoneMDRecord.Hash
java.lang.Object
org.xbill.DNS.ZoneMDRecord.Hash
- Enclosing class:
ZoneMDRecord
ZONEMD Hash Algorithms.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic inthashLength(int hashAlgorithm) Gets the length, in bytes, of the specified hash algorithm.static Stringstring(int alg) Converts an algorithm into its textual representationstatic intConverts a textual representation of a hash algorithm into its numeric code.
-
Field Details
-
RESERVED
public static final int RESERVEDReserved.- See Also:
-
SHA384
public static final int SHA384SHA-384- See Also:
-
SHA512
public static final int SHA512SHA-512- See Also:
-
-
Method Details
-
string
Converts an algorithm into its textual representation -
value
Converts a textual representation of a hash algorithm into its numeric code. Integers in the range 0..255 are also accepted.- Parameters:
s- The textual representation of the hash algorithm.- Returns:
- The algorithm code, or -1 for an unknown hash algorithm.
-
hashLength
public static int hashLength(int hashAlgorithm) Gets the length, in bytes, of the specified hash algorithm.- Returns:
- The length, in bytes, or -1 for an unknown hash algorithm.
-