Package org.xbill.DNS.dnssec
Class SRRset
java.lang.Object
org.xbill.DNS.RRset
org.xbill.DNS.dnssec.SRRset
- All Implemented Interfaces:
Serializable,Iterable<Record>
- Direct Known Subclasses:
KeyEntry
An extended version of
RRset that adds the indication of DNSSEC security status.- Since:
- 3.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the recordsReturn the current security status (generally:SecurityStatus.UNCHECKED,SecurityStatus.BOGUS, orSecurityStatus.SECURE).The "signer" name for thisSRRset, if signed, ornullif not.voidSet the name of the records.voidsetSecurityStatus(SecurityStatus status) Set the current security status for this SRRset.Methods inherited from class org.xbill.DNS.RRset
addRR, addRR, clear, deleteRR, deleteRR, first, getDClass, getTTL, getType, isEmpty, iterator, rrs, rrs, sigs, sigSize, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
securityStatus
-
ownerName
-
-
Constructor Details
-
SRRset
public SRRset()Create a new, blank SRRset. -
SRRset
Create a new SRRset with one record.- Parameters:
r- The record to add to the RRset.
-
SRRset
Create a new SRRset from an existing RRset. This SRRset will contain the same internalRecordobjects as the original RRset.- Parameters:
r- The RRset to copy.
-
SRRset
Create a new SRRset from an existing SRRset. This SRRset will contain the same internalRecordobjects as the original SRRset.- Parameters:
r- The RRset to copy.
-
-
Method Details
-
getSecurityStatus
Return the current security status (generally:SecurityStatus.UNCHECKED,SecurityStatus.BOGUS, orSecurityStatus.SECURE).- Returns:
- The security status for this set,
SecurityStatus.UNCHECKEDif it has never been set manually.
-
setSecurityStatus
Set the current security status for this SRRset.- Parameters:
status- The new security status for this set.
-
getSignerName
The "signer" name for thisSRRset, if signed, ornullif not. -
getName
Description copied from class:RRsetReturns the name of the records -
setName
Set the name of the records.- Parameters:
ownerName- theNameto override the original name with.
-