Package org.xbill.DNS

Class IPSECKEYRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.IPSECKEYRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class IPSECKEYRecord extends Record
IPsec Keying Material (RFC 4025)
Author:
Brian Wellington
See Also:
  • Constructor Details

    • IPSECKEYRecord

      public IPSECKEYRecord(Name name, int dclass, long ttl, int precedence, int gatewayType, int algorithmType, Object gateway, byte[] key)
      Creates an IPSECKEY Record from the given data.
      Parameters:
      precedence - The record's precedence.
      gatewayType - The record's gateway type.
      algorithmType - The record's algorithm type.
      gateway - The record's gateway.
      key - The record's public key.
  • Method Details

    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getPrecedence

      public int getPrecedence()
      Returns the record's precedence.
    • getGatewayType

      public int getGatewayType()
      Returns the record's gateway type.
    • getAlgorithmType

      public int getAlgorithmType()
      Returns the record's algorithm type.
    • getGateway

      public Object getGateway()
      Returns the record's gateway.
    • getKey

      public byte[] getKey()
      Returns the record's public key
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record