pyxmpp.streamtls.TLSSettings

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

## Class TLSSettings

Storage for TLS-related settings of an XMPP stream.

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

Instance Variable Summary
| `cacert_file`: path to a file with trusted CA certificates
| `cert_file`: path to own X.509 certificate
| `key_file`: path to the private key for own X.509 certificate
| `require`: is TLS required
| `verify_callback`: callback function for certificate verification.
| `verify_peer`: should the peer's certificate be verified

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.

Instance Variable Details

### cacert_file path to a file with trusted CA certificates

### cert_file path to own X.509 certificate

### key_file path to the private key for own X.509 certificate

### require is TLS required

### verify_callback callback function for certificate verification. See M2Crypto documentation for details.

### verify_peer should the peer's certificate be verified