Package org.xbill.DNS
Class NSECRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.NSECRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<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:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNSECRecord(Name name, int dclass, long ttl, Name next, int[] types) Creates an NSEC Record from the given data. -
Method Summary
Modifier and TypeMethodDescriptiongetNext()Returns the next nameint[]getTypes()Returns the set of types defined for this namebooleanhasType(int type) Returns whether a specific type is in the set of types.protected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts rdata to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
NSECRecord
Creates an NSEC Record from the given data.- Parameters:
next- The following name in an ordered list of the zonetypes- An array containing the types present.
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden. -
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
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.
-