class documentation

class AcceptableCiphers: (source)

Implements interfaces: twisted.internet.interfaces.IAcceptableCiphers

View In Hierarchy

A representation of ciphers that are acceptable for TLS connections.

Method __init__ Undocumented
Method selectCiphers Choose which ciphers to allow to be negotiated on a TLS connection.
Class Method fromOpenSSLCipherString Create a new instance using an OpenSSL cipher string.
Instance Variable _ciphers Undocumented
def __init__(self, ciphers): (source)

Undocumented

_ciphers = (source)

Undocumented

def selectCiphers(self, availableCiphers): (source)

Choose which ciphers to allow to be negotiated on a TLS connection.

ParametersavailableCiphersA tuple of ICipher which gives the names of all ciphers supported by the TLS implementation in use.
ReturnsA tuple of ICipher which represents the ciphers which may be negotiated on the TLS connection. The result is ordered by preference with more preferred ciphers appearing earlier.
@classmethod
def fromOpenSSLCipherString(cls, cipherString): (source)

Create a new instance using an OpenSSL cipher string.

ParameterscipherStringAn OpenSSL cipher string that describes what cipher suites are acceptable. See the documentation of OpenSSL or Apache for details. (type: unicode)
ReturnsInstance representing cipherString. (type: twisted.internet.ssl.AcceptableCiphers)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.