Implements interfaces: twisted.internet.interfaces.IAcceptableCiphers

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.
def __init__(self, ciphers): (source)
Undocumented
def selectCiphers(self, availableCiphers): (source)

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

ParametersavailableCiphersA list of ICipher which gives the names of all ciphers supported by the TLS implementation in use.
ReturnsA list 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 at 2017-06-11 10:59:01.