Package dns :: Package rdtypes :: Package ANY :: Module RRSIG :: Class RRSIG
[hide private]
[frames] | no frames]

Class RRSIG

source code

 object --+    
          |    
rdata.Rdata --+
              |
             RRSIG

RRSIG record

Instance Methods [hide private]
 
__init__(self, rdclass, rdtype, type_covered, algorithm, labels, original_ttl, expiration, inception, key_tag, signer, signature)
Initialize an rdata.
source code
 
covers(self)
Return the type a Rdata covers.
source code
 
to_text(self, origin=None, relativize=True, **kw)
Convert an rdata to text format.
source code
 
to_wire(self, file, compress=None, origin=None)
Convert an rdata to wire format.
source code
 
choose_relativity(self, origin=None, relativize=True)
Convert any domain names in the rdata to the specified relativization.
source code

Inherited from rdata.Rdata: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __repr__, __str__, extended_rdatatype, to_digestable, validate

Inherited from rdata.Rdata (private): _cmp

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True) source code
 
from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None) source code
Instance Variables [hide private]
int algorithm
the algorithm used for the sig
long expiration
signature expiration time
long inception
signature inception time
int key_tag
the key tag
int labels
number of labels
long original_ttl
the original TTL
string signature
the signature
dns.name.Name object signer
the signer
int type_covered
the rdata type this signature covers
Properties [hide private]

Inherited from rdata.Rdata: rdclass, rdtype

Inherited from object: __class__

Method Details [hide private]

__init__(self, rdclass, rdtype, type_covered, algorithm, labels, original_ttl, expiration, inception, key_tag, signer, signature)
(Constructor)

source code 

Initialize an rdata.

*rdclass*, an ``int`` is the rdataclass of the Rdata. *rdtype*, an ``int`` is the rdatatype of the Rdata.

Overrides: object.__init__
(inherited documentation)

covers(self)

source code 

Return the type a Rdata covers.

DNS SIG/RRSIG rdatas apply to a specific type; this type is returned by the covers() function. If the rdata type is not SIG or RRSIG, dns.rdatatype.NONE is returned. This is useful when creating rdatasets, allowing the rdataset to contain only RRSIGs of a particular type, e.g. RRSIG(NS).

Returns an ``int``.

Overrides: rdata.Rdata.covers
(inherited documentation)

to_text(self, origin=None, relativize=True, **kw)

source code 

Convert an rdata to text format.

Returns a ``text``.

Overrides: rdata.Rdata.to_text
(inherited documentation)

from_text(cls, rdclass, rdtype, tok, origin=None, relativize=True)
Class Method

source code 
Overrides: rdata.Rdata.from_text

to_wire(self, file, compress=None, origin=None)

source code 

Convert an rdata to wire format.

Returns a ``binary``.

Overrides: rdata.Rdata.to_wire
(inherited documentation)

from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None)
Class Method

source code 
Overrides: rdata.Rdata.from_wire

choose_relativity(self, origin=None, relativize=True)

source code 

Convert any domain names in the rdata to the specified relativization.

Overrides: rdata.Rdata.choose_relativity
(inherited documentation)