Package org.xbill.DNS

Class DLVRecord

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

public class DLVRecord extends Record
DLV - contains a Delegation Lookaside Validation record, which acts as the equivalent of a DS record in a lookaside zone.
Author:
David Blacka, Brian Wellington
See Also:
  • Field Details

  • Constructor Details

    • DLVRecord

      public DLVRecord(Name name, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest)
      Creates a DLV Record from the given data
      Parameters:
      footprint - The original KEY record's footprint (keyid).
      alg - The original key algorithm.
      digestid - The digest id code.
      digest - A hash of the original 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()
      Converts rdata to a String
      Specified by:
      rrToString in class Record
    • getAlgorithm

      public int getAlgorithm()
      Returns the key's algorithm.
    • getDigestID

      public int getDigestID()
      Returns the key's Digest ID.
    • getDigest

      public byte[] getDigest()
      Returns the binary hash of the key.
    • getFootprint

      public int getFootprint()
      Returns the key's footprint.
    • 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