Package org.xbill.DNS

Class KEYRecord.Protocol

java.lang.Object
org.xbill.DNS.KEYRecord.Protocol
Enclosing class:
KEYRecord

public static class KEYRecord.Protocol extends Object
KEY protocol identifiers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Any protocol
    static final int
    DNSSEC
    static final int
    Email
    static final int
    IPSEC Control
    static final int
    No defined protocol.
    static final int
    Transaction Level Security
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    string(int type)
    Converts an KEY protocol value into its textual representation
    static int
    Converts a textual representation of a KEY protocol 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 type)
      Converts an KEY protocol value into its textual representation
    • value

      public static int value(String s)
      Converts a textual representation of a KEY protocol into its numeric code. Integers in the range 0..255 are also accepted.
      Parameters:
      s - The textual representation of the protocol
      Returns:
      The protocol code, or -1 on error.