interface documentation

class twisted.internet.interfaces.IAcceptableCiphers(Interface): (source)

View In Hierarchy

A list of acceptable ciphers for a TLS context.

Method selectCiphers Choose which ciphers to allow to be negotiated on a TLS connection.
def selectCiphers(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. (type: Tuple[ICipher])
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. (type: Tuple[ICipher])
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.