class _ContextFactoryToConnectionFactory: (source)
Constructor: _ContextFactoryToConnectionFactory(oldStyleContextFactory)
Implements interfaces: twisted.internet.interfaces.IOpenSSLClientConnectionCreator, twisted.internet.interfaces.IOpenSSLServerConnectionCreator
Adapter wrapping a twisted.internet.interfaces.IOpenSSLContextFactory into a IOpenSSLClientConnectionCreator or IOpenSSLServerConnectionCreator.
See https://twistedmatrix.com/trac/ticket/7215 for work that should make this unnecessary.
| Method | __init__ |
Construct a _ContextFactoryToConnectionFactory with a twisted.internet.interfaces.IOpenSSLContextFactory. |
| Method | client |
Construct an OpenSSL server connection from the wrapped old-style context factory. |
| Method | server |
Construct an OpenSSL server connection from the wrapped old-style context factory. |
| Method | _connection |
Create an OpenSSL.SSL.Connection object. |
| Instance Variable | _old |
Undocumented |
Construct a _ContextFactoryToConnectionFactory with a twisted.internet.interfaces.IOpenSSLContextFactory.
Immediately call getContext on oldStyleContextFactory in order to force advance parameter checking, since old-style context factories don't actually check that their arguments to OpenSSL are correct.
| Parameters | |
oldtwisted.internet.interfaces.IOpenSSLContextFactory | A factory that can produce contexts. |
Construct an OpenSSL server connection from the wrapped old-style context factory.
| Parameters | |
protocol:TLSMemoryBIOProtocol | The protocol initiating a TLS connection. |
| Returns | |
OpenSSL.SSL.Connection | a connection |
| Note | |
Since old-style context factories don't distinguish between clients and servers, this is exactly the same as _ContextFactoryToConnectionFactory.serverConnectionForTLS. |
Construct an OpenSSL server connection from the wrapped old-style context factory.
| Parameters | |
protocol:TLSMemoryBIOProtocol | The protocol initiating a TLS connection. |
| Returns | |
OpenSSL.SSL.Connection | a connection |
| Note | |
Since old-style context factories don't distinguish between clients and servers, this is exactly the same as _ContextFactoryToConnectionFactory.clientConnectionForTLS. |
Create an OpenSSL.SSL.Connection object.
| Parameters | |
protocol:TLSMemoryBIOProtocol | The protocol initiating a TLS connection. |
| Returns | |
OpenSSL.SSL.Connection | a connection |