Kea 2.7.5
|
The RRset
class is a concrete derived class of BasicRRset
which contains a pointer to an additional RRset containing associated RRSIG records.
More...
#include <rrset.h>
Public Member Functions | |
RRset (const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl) | |
virtual | ~RRset () |
virtual void | addRRsig (const AbstractRRset &sigs) |
Adds an RRSIG RRset to this RRset. | |
virtual void | addRRsig (const ConstRRsetPtr &sigs) |
Adds RRSIG RRset RRs to the associated RRSIG RRset. | |
virtual void | addRRsig (const rdata::ConstRdataPtr &rdata) |
Adds an RRSIG RR to this RRset's signatures. | |
virtual void | addRRsig (const rdata::RdataPtr &rdata) |
Adds RRSIG RRset RRs to the associated RRSIG RRset. | |
virtual void | addRRsig (const RRsetPtr &sigs) |
Adds RRSIG RRset RRs to the associated RRSIG RRset. | |
virtual uint16_t | getLength () const |
Get the wire format length of the RRset . | |
virtual RRsetPtr | getRRsig () const |
Return a pointer to this RRset's RRSIG RRset. | |
virtual uint32_t | getRRsigDataCount () const |
Returns the number of RRSIG records associated with the RRset . | |
virtual void | removeRRsig () |
Clear the RRSIGs for this RRset. | |
virtual void | setTTL (const RRTTL &ttl) |
Updates the owner name of the RRset , including RRSIGs if any. | |
virtual uint32_t | toWire (AbstractMessageRenderer &renderer) const |
Render the RRset in the wire format with name compression and truncation handling. | |
virtual uint32_t | toWire (isc::util::OutputBuffer &buffer) const |
Render the RRset in the wire format without any compression. | |
Public Member Functions inherited from isc::dns::BasicRRset | |
virtual uint32_t | getRdataCount () const |
Returns the number of Rdata objects contained in the RRset . | |
virtual const Name & | getName () const |
Returns the owner name of the RRset . | |
virtual const RRClass & | getClass () const |
Returns the RR Class of the RRset . | |
virtual const RRType & | getType () const |
Returns the RR Type of the RRset . | |
virtual const RRTTL & | getTTL () const |
Returns the TTL of the RRset . | |
virtual std::string | toText () const |
Convert the RRset to a string. | |
virtual void | addRdata (rdata::ConstRdataPtr rdata) |
Add an RDATA to the RRset (pointer version). | |
virtual void | addRdata (const rdata::Rdata &rdata) |
Add an RDATA to the RRset (reference version). | |
virtual void | addRdata (const std::string &rdata_str) |
Add an RDATA to the RRset (string version). | |
virtual RdataIteratorPtr | getRdataIterator () const |
Return an iterator to go through all RDATA stored in the BasicRRset . | |
BasicRRset (const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl) | |
Constructor from (mostly) fixed parameters of the RRset. | |
virtual | ~BasicRRset () |
The destructor. | |
Public Member Functions inherited from isc::dns::AbstractRRset | |
virtual bool | isSameKind (const AbstractRRset &other) const |
Check whether two RRsets are of the same kind. | |
virtual | ~AbstractRRset () |
The destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from isc::dns::AbstractRRset | |
AbstractRRset () | |
The default constructor. | |
The RRset
class is a concrete derived class of BasicRRset
which contains a pointer to an additional RRset containing associated RRSIG records.
This allows DNSSEC aware applications to treat data associated with a particular QNAME/QTYPE/QCLASS as a single object.
isc::dns::RRset::RRset | ( | const Name & | name, |
const RRClass & | rrclass, | ||
const RRType & | rrtype, | ||
const RRTTL & | ttl ) |
Definition at line 348 of file rrset.cc.
Referenced by addRRsig(), and addRRsig().
|
inlinevirtual |
Adds an RRSIG RRset to this RRset.
Reimplemented from isc::dns::BasicRRset.
Definition at line 896 of file rrset.h.
References RRset(), isc::dns::BasicRRset::getClass(), isc::dns::BasicRRset::getName(), isc::dns::BasicRRset::getTTL(), and isc::dns::RRType::RRSIG().
|
inlinevirtual |
Adds RRSIG RRset RRs to the associated RRSIG RRset.
Adds the signatures in the given (assumed) RRSIG RRset to the RRSIG RRset associated with this RRset. If one does not exist, it is created using the data given.
sigs | Pointer to a RRSIG RRset containing signatures to be added to the RRSIG RRset associated with this class. |
Reimplemented from isc::dns::BasicRRset.
Definition at line 909 of file rrset.h.
References addRRsig().
Referenced by addRRsig().
|
inlinevirtual |
Adds an RRSIG RR to this RRset's signatures.
Reimplemented from isc::dns::BasicRRset.
Definition at line 878 of file rrset.h.
References RRset(), isc::dns::BasicRRset::getClass(), isc::dns::BasicRRset::getName(), isc::dns::BasicRRset::getTTL(), and isc::dns::RRType::RRSIG().
Referenced by addRRsig().
|
inlinevirtual |
Adds RRSIG RRset RRs to the associated RRSIG RRset.
Adds the (assumed) RRSIG rdata the RRSIG RRset associated with this RRset. If one does not exist, it is created using the data given.
(This overload is for an older version of boost that doesn't support conversion from shared_ptr<X> to shared_ptr<const X>.)
rdata | Pointer to RRSIG rdata to be added. |
Reimplemented from isc::dns::BasicRRset.
Definition at line 890 of file rrset.h.
References addRRsig().
|
inlinevirtual |
Adds RRSIG RRset RRs to the associated RRSIG RRset.
Adds the signatures in the given (assumed) RRSIG RRset to the RRSIG RRset associated with this RRset. If one does not exist, it is created using the data given.
(This overload is for an older version of boost that doesn't support conversion from shared_ptr<X> to shared_ptr<const X>.)
sigs | Pointer to a RRSIG RRset containing signatures to be added to the RRSIG RRset associated with this class. |
Reimplemented from isc::dns::BasicRRset.
Definition at line 912 of file rrset.h.
References addRRsig().
Referenced by addRRsig().
|
virtual |
Get the wire format length of the RRset
.
RRset
. EmptyRRset | if the RRset is empty. |
Reimplemented from isc::dns::BasicRRset.
Definition at line 366 of file rrset.cc.
References isc::dns::BasicRRset::getLength(), and isc_throw_assert.
|
inlinevirtual |
Return a pointer to this RRset's RRSIG RRset.
Reimplemented from isc::dns::BasicRRset.
|
virtual |
|
inlinevirtual |
Clear the RRSIGs for this RRset.
Reimplemented from isc::dns::BasicRRset.
|
inlinevirtual |
Updates the owner name of the RRset
, including RRSIGs if any.
Reimplemented from isc::dns::BasicRRset.
Definition at line 870 of file rrset.h.
References isc::dns::BasicRRset::setTTL().
|
virtual |
Render the RRset in the wire format with name compression and truncation handling.
See AbstractRRset::toWire(MessageRenderer&)const
.
Reimplemented from isc::dns::BasicRRset.
Definition at line 395 of file rrset.cc.
References isc::dns::BasicRRset::getRdataCount(), getRRsigDataCount(), and isc::dns::BasicRRset::toWire().
|
virtual |
Render the RRset in the wire format without any compression.
See AbstractRRset::toWire(OutputBuffer&)const
.
Reimplemented from isc::dns::BasicRRset.
Definition at line 381 of file rrset.cc.
References isc::dns::BasicRRset::getRdataCount(), and isc::dns::BasicRRset::toWire().