Package org.xbill.DNS
Class DNSSEC.Digest
java.lang.Object
org.xbill.DNS.DNSSEC.Digest
- Enclosing class:
DNSSEC
DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms.
- Since:
- 3.5
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SHA1
public static final int SHA1SHA-1.- See Also:
-
SHA256
public static final int SHA256SHA-256.- See Also:
-
GOST3411
public static final int GOST3411GOST R 34.11-94.- See Also:
-
SHA384
public static final int SHA384SHA-384.- See Also:
-
GOST3411_12
public static final int GOST3411_12GOST R 34.11-2012.- Since:
- 3.6
- See Also:
-
SM3
public static final int SM3SM3 hashing algorithm.- Since:
- 3.6
- See Also:
-
-
Method Details
-
string
Converts an algorithm into its textual representation -
value
Converts a textual representation of an algorithm into its numeric code. Integers in the range 0..255 are also accepted.- Parameters:
s- The textual representation of the algorithm- Returns:
- The algorithm code, or -1 on error.
-
algLength
public static int algLength(int alg) Gets the length, in bytes, of the specified digest id.- Returns:
- The length, in bytes, or -1 for an unknown digest.
- Since:
- 3.6
-