Package org.xbill.DNS

Class DNSSEC.Digest

java.lang.Object
org.xbill.DNS.DNSSEC.Digest
Enclosing class:
DNSSEC

public static class DNSSEC.Digest extends Object
DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms.
Since:
3.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    GOST R 34.11-94.
    static final int
    GOST R 34.11-2012.
    static final int
    SHA-1.
    static final int
    SHA-256.
    static final int
    SHA-384.
    static final int
    SM3 hashing algorithm.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    algLength(int alg)
    Gets the length, in bytes, of the specified digest id.
    static String
    string(int alg)
    Converts an algorithm into its textual representation
    static int
    Converts a textual representation of an algorithm into its numeric code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • string

      public static String string(int alg)
      Converts an algorithm into its textual representation
    • value

      public static int value(String s)
      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