Package org.xbill.DNS

Class OPENPGPKEYRecord

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

public class OPENPGPKEYRecord extends Record
OPENPGPKEY Record - Stores an OpenPGP certificate associated with a name.
Author:
Brian Wellington, Valentin Hauner
See Also:
  • Constructor Details

    • OPENPGPKEYRecord

      public OPENPGPKEYRecord(Name name, int dclass, long ttl, byte[] cert)
      Creates an OPENPGPKEY Record from the given data
      Parameters:
      cert - Binary data representing the certificate
  • Method Details

    • rrFromWire

      protected void rrFromWire(DNSInput in)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
    • 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()
      Converts rdata to a String
      Specified by:
      rrToString in class Record
    • getCert

      public byte[] getCert()
      Returns the binary representation of the certificate
    • 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