Package org.xbill.DNS

Class ZoneMDRecord

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

public class ZoneMDRecord extends Record
ZONEMD Resource record.
Since:
3.6
See Also:
  • Constructor Details

    • ZoneMDRecord

      public ZoneMDRecord(Name name, int dclass, long ttl, long serial, int scheme, int hashAlgorithm, byte[] digest)
  • Method Details

    • 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
    • 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
    • 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
    • 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
    • getSerial

      public long getSerial()
      A 32-bit unsigned integer in network byte order. It is the serial number from the zone's SOA record (RFC 1035, Section 3.3.13]) for which the zone digest was generated.
    • getScheme

      public int getScheme()
      An 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.
      See Also:
    • getHashAlgorithm

      public int getHashAlgorithm()
      An 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.
      See Also:
    • getDigest

      public byte[] getDigest()
      A byte array containing the output of the hash algorithm. The length is determined by getHashAlgorithm().
      See Also: