Package pyxmpp :: Module streamtls :: Class TLSSettings
[show private | hide private]
[frames | no frames]

Class TLSSettings


Storage for TLS-related settings of an XMPP stream.

:Ivariables:
     - `require`: is TLS required
     - `verify_peer`: should the peer's certificate be verified
     - `cert_file`: path to own X.509 certificate
     - `key_file`: path to the private key for own X.509 certificate
     - `cacert_file`: path to a file with trusted CA certificates
     - `verify_callback`: callback function for certificate
       verification. See M2Crypto documentation for details.

Method Summary
  __init__(self, require, verify_peer, cert_file, key_file, cacert_file, verify_callback, ctx)
Initialize the TLSSettings object.

Method Details

__init__(self, require=False, verify_peer=True, cert_file=None, key_file=None, cacert_file=None, verify_callback=None, ctx=None)
(Constructor)

Initialize the TLSSettings object.

:Parameters:
    - `require`:  is TLS required
    - `verify_peer`: should the peer's certificate be verified
    - `cert_file`: path to own X.509 certificate
    - `key_file`: path to the private key for own X.509 certificate
    - `cacert_file`: path to a file with trusted CA certificates
    - `verify_callback`: callback function for certificate
      verification. See M2Crypto documentation for details.

Generated by Epydoc 2.1 on Wed May 31 22:36:57 2006 http://epydoc.sf.net