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`.`protocols`.`amp`.`_NoCertificate``

class documentation

`class _NoCertificate: (source)`

View In Hierarchy

This is for peers which don't want to use a local certificate. Used by AMP because AMP's internal language is all about certificates and this duck-types in the appropriate place; this API isn't really stable though, so it's not exposed anywhere public.

For clients, it will use ephemeral DH keys, or whatever the default is for certificate-less clients in OpenSSL. For servers, it will generate a temporary self-signed certificate with garbage values in the DN and use that.

Method | `__init__` | Create a _NoCertificate which either is or isn't for the client side of the connection.
Method | `options` | Behaves like `twisted.internet.ssl.PrivateCertificate.options`().
Instance Variable | `client` | Undocumented

def __init__(self, client): (source)

Create a _NoCertificate which either is or isn't for the client side of the connection.

Parameters
client:bool | True if we are a client and should truly have no certificate and be anonymous, False if we are a server and actually have to generate a temporary certificate.

def options(self, *authorities): (source)

Behaves like `twisted.internet.ssl.PrivateCertificate.options`().

client = (source)

Undocumented