TlsServerConnection#
Added in version 2.28.
- class TlsServerConnection(*args, **kwargs)#
GTlsServerConnection is the server-side subclass of
TlsConnection, representing a server-side TLS connection.
Methods#
- class TlsServerConnection
- classmethod new(base_io_stream: IOStream, certificate: TlsCertificate | None = None) TlsServerConnection#
Creates a new
GTlsServerConnectionwrappingbase_io_stream(which must have pollable input and output streams).See the documentation for
TlsConnection:base-io-stream for restrictions on when application code can run operations on thebase_io_streamafter this function has returned.Added in version 2.28.
- Parameters:
base_io_stream – the
IOStreamto wrapcertificate – the default server certificate, or
None
Properties#
- class TlsServerConnection
- props.authentication_mode: TlsAuthenticationMode#
The
TlsAuthenticationModefor the server. This can be changed before callinghandshake()if you want to rehandshake with a different mode from the initial handshake.Added in version 2.28.