Package org.xbill.DNS

Class DNSSEC.Algorithm

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

public static class DNSSEC.Algorithm extends Object
Domain Name System Security (DNSSEC) Algorithm Numbers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Delete DS record in parent zone.
    static final int
    Diffie Hellman key
    static final int
    DSA public key
    static final int
    DSA/SHA1, NSEC3-aware public key
    static final int
    GOST R 34.10-2001.
    static final int
    GOST R 34.10-2012.
    static final int
    ECDSA Curve P-256 with SHA-256 public key.
    static final int
    ECDSA Curve P-384 with SHA-384 public key.
    static final int
    Edwards-Curve Digital Security Algorithm (EdDSA) for DNSSEC.
    static final int
    Edwards-Curve Digital Security Algorithm (EdDSA) for DNSSEC.
    static final int
    Indirect keys; the actual key is elsewhere.
    static final int
    Private algorithm, specified by domain name
    static final int
    Private algorithm, specified by OID
    static final int
    RSA/SHA1, NSEC3-aware public key
    static final int
    RSA/MD5 public key (deprecated)
    static final int
    RSA/SHA1 public key
    static final int
    RSA/SHA256 public key
    static final int
    RSA/SHA512 public key
    static final int
    SM2 signing algorithm with SM3 hashing algorithm.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    check(int val)
    Checks that a numeric value is within the range [0..max]
    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.
    • check

      public static void check(int val)
      Checks that a numeric value is within the range [0..max]