dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.rdtypes.ANY.CERT.CERT Class Reference
Inheritance diagram for dns.rdtypes.ANY.CERT.CERT:
[legend]
Collaboration diagram for dns.rdtypes.ANY.CERT.CERT:
[legend]

Public Member Functions

def __init__ (self, rdclass, rdtype, certificate_type, key_tag, algorithm, certificate)
 
def to_text (self, origin=None, relativize=True, **kw)
 
def from_text (cls, rdclass, rdtype, tok, origin=None, relativize=True)
 
def to_wire (self, file, compress=None, origin=None)
 
def from_wire (cls, rdclass, rdtype, wire, current, rdlen, origin=None)
 
- Public Member Functions inherited from dns.rdata.Rdata
def __init__ (self, rdclass, rdtype)
 
def covers (self)
 
def extended_rdatatype (self)
 
def to_digestable (self, origin=None)
 
def validate (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __lt__ (self, other)
 
def __le__ (self, other)
 
def __ge__ (self, other)
 
def __gt__ (self, other)
 
def __hash__ (self)
 
def choose_relativity (self, origin=None, relativize=True)
 

Public Attributes

 certificate_type
 
 key_tag
 
 algorithm
 
 certificate
 
- Public Attributes inherited from dns.rdata.Rdata
 rdclass
 
 rdtype
 

Static Private Attributes

list __slots__ = ['certificate_type', 'key_tag', 'algorithm', 'certificate']
 

Detailed Description

CERT record

@ivar certificate_type: certificate type
@type certificate_type: int
@ivar key_tag: key tag
@type key_tag: int
@ivar algorithm: algorithm
@type algorithm: int
@ivar certificate: the certificate or CRL
@type certificate: string
@see: RFC 2538

Definition at line 57 of file CERT.py.

Constructor & Destructor Documentation

◆ __init__()

def dns.rdtypes.ANY.CERT.CERT.__init__ (   self,
  rdclass,
  rdtype,
  certificate_type,
  key_tag,
  algorithm,
  certificate 
)

Definition at line 73 of file CERT.py.

Member Function Documentation

◆ from_text()

def dns.rdtypes.ANY.CERT.CERT.from_text (   cls,
  rdclass,
  rdtype,
  tok,
  origin = None,
  relativize = True 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 88 of file CERT.py.

References dns.rdtypes.ANY.CERT._ctype_from_text(), and dns.dnssec.algorithm_from_text().

◆ from_wire()

def dns.rdtypes.ANY.CERT.CERT.from_wire (   cls,
  rdclass,
  rdtype,
  wire,
  current,
  rdlen,
  origin = None 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 114 of file CERT.py.

◆ to_text()

def dns.rdtypes.ANY.CERT.CERT.to_text (   self,
  origin = None,
  relativize = True,
**  kw 
)

◆ to_wire()

def dns.rdtypes.ANY.CERT.CERT.to_wire (   self,
  file,
  compress = None,
  origin = None 
)
Convert an rdata to wire format.

Returns a ``binary``.

Reimplemented from dns.rdata.Rdata.

Definition at line 107 of file CERT.py.

References dns.rdtypes.ANY.CERT.CERT.algorithm, dns.rdtypes.ANY.CERT.CERT.certificate, dns.rdtypes.ANY.CERT.CERT.certificate_type, and dns.rdtypes.ANY.CERT.CERT.key_tag.

Member Data Documentation

◆ __slots__

list dns.rdtypes.ANY.CERT.CERT.__slots__ = ['certificate_type', 'key_tag', 'algorithm', 'certificate']
staticprivate

Definition at line 71 of file CERT.py.

◆ algorithm

◆ certificate

dns.rdtypes.ANY.CERT.CERT.certificate

Definition at line 78 of file CERT.py.

Referenced by dns.rdtypes.ANY.CERT.CERT.to_text(), and dns.rdtypes.ANY.CERT.CERT.to_wire().

◆ certificate_type

dns.rdtypes.ANY.CERT.CERT.certificate_type

Definition at line 75 of file CERT.py.

Referenced by dns.rdtypes.ANY.CERT.CERT.to_text(), and dns.rdtypes.ANY.CERT.CERT.to_wire().

◆ key_tag


The documentation for this class was generated from the following file: