Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`ssl`.`DefaultOpenSSLContextFactory``

class documentation

`class DefaultOpenSSLContextFactory(ContextFactory): (source)`

View In Hierarchy

`DefaultOpenSSLContextFactory` is a factory for server-side SSL context objects. These objects define certain parameters related to SSL handshakes and the subsequent connection.

Method | `__getstate__` | Undocumented
Method | `__init__` | No summary
Method | `__setstate__` | Undocumented
Method | `cacheContext` | Undocumented
Method | `getContext` | Return an SSL context.
Instance Variable | `__dict__` | Undocumented
Instance Variable | `certificateFileName` | Undocumented
Instance Variable | `privateKeyFileName` | Undocumented
Instance Variable | `sslmethod` | Undocumented
Instance Variable | `_context` | Undocumented
Instance Variable | `_contextFactory` | A callable which will be used to create new context objects. This is typically `OpenSSL.SSL.Context`.

Inherited from `ContextFactory`:

Class Variable | `isClient` | Undocumented

def __getstate__(self): (source)

Undocumented

def __init__(self, privateKeyFileName, certificateFileName, sslmethod=SSL.SSLv23_METHOD, _contextFactory=SSL.Context): (source)

Parameters
privateKeyFileName | Name of a file containing a private key
certificateFileName | Name of a file containing a certificate
sslmethod | The SSL method to use
_contextFactory | Undocumented

def __setstate__(self, state): (source)

Undocumented

def cacheContext(self): (source)

Undocumented

def getContext(self): (source)
from `twisted.internet.interfaces.IOpenSSLContextFactory`
overrides `twisted.internet.ssl.ContextFactory.getContext`

Return an SSL context.

__dict__ = (source)

Undocumented

certificateFileName = (source)

Undocumented

privateKeyFileName = (source)

Undocumented

sslmethod = (source)

Undocumented

_context = (source)

Undocumented

_contextFactory = (source)

A callable which will be used to create new context objects. This is typically `OpenSSL.SSL.Context`.