Package pyxmpp2 :: Module cert :: Class ASN1CertificateData
[hide private]

Class ASN1CertificateData


Certificate information interface.

This class actually decodes the certificate, providing all the names there.

Instance Methods [hide private]
 
_decode_subject(self, subject)
Load data from a ASN.1 subject.
 
_decode_validity(self, validity)
Load data from a ASN.1 validity value.
 
_decode_alt_names(self, alt_names)
Load SubjectAltName from a ASN.1 GeneralNames value.

Inherited from CertificateData: __init__, get_jids, verify_client, verify_jid_against_common_name, verify_jid_against_srv_name, verify_server

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

Class Methods [hide private]
 
from_ssl_socket(cls, ssl_socket)
Get certificate data from an SSL socket.
ASN1CertificateData
from_der_data(cls, data)
Decode DER-encoded certificate.
 
from_file(cls, filename)
Load certificate from a file.
Class Variables [hide private]
  _cert_asn1_type = None
hash(x)
Properties [hide private]

Inherited from CertificateData: display_name

Inherited from object: __class__

Method Details [hide private]

from_der_data(cls, data)
Class Method

 
Decode DER-encoded certificate.
Parameters:
  • data (bytes) - the encoded certificate
Returns: ASN1CertificateData
decoded certificate data

_decode_alt_names(self, alt_names)

 
Load SubjectAltName from a ASN.1 GeneralNames value.
Parameters: