Package org.xbill.DNS

Class NSECRecord

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

public class NSECRecord extends Record
Next SECure name - this record contains the following name in an ordered list of names in the zone, and a set of types for which records exist for this name. The presence of this record in a response signifies a negative response from a DNSSEC-signed zone.

This replaces the NXT record.

Author:
Brian Wellington, David Blacka
See Also:
  • Constructor Details

    • NSECRecord

      public NSECRecord(Name name, int dclass, long ttl, Name next, int[] types)
      Creates an NSEC Record from the given data.
      Parameters:
      next - The following name in an ordered list of the zone
      types - An array containing the types present.
  • 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
    • 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
    • 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
    • getNext

      public Name getNext()
      Returns the next name
    • getTypes

      public int[] getTypes()
      Returns the set of types defined for this name
    • hasType

      public boolean hasType(int type)
      Returns whether a specific type is in the set of types.