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
    private static final Map<Integer,Integer>
     
    private static final Mnemonic
     
    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.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • 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

  • Constructor Details

    • Digest

      private Digest()
  • 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