class documentation

class HandshakeCallbackContextFactory:

Constructor: HandshakeCallbackContextFactory(method)

View In Hierarchy

HandshakeCallbackContextFactory is a factory for SSL contexts which allows applications to get notification when the SSL handshake completes.

Class Method factoryAndDeferred Create a new HandshakeCallbackContextFactory and return a two-tuple of it and a Deferred which will fire when a connection created with it completes a TLS handshake.
Method __init__ Undocumented
Method getContext Create and return an SSL context configured to use self._info as the info callback.
Method _info This is the "info callback" on the context. It will be called periodically by pyOpenSSL with information about the state of a connection. When it indicates the handshake is complete, it will fire self._finished...
Instance Variable _finished A Deferred which will be called back when the handshake is done.
Instance Variable _method Undocumented
@classmethod
def factoryAndDeferred(cls):

Create a new HandshakeCallbackContextFactory and return a two-tuple of it and a Deferred which will fire when a connection created with it completes a TLS handshake.

def __init__(self, method=TLS_METHOD):

Undocumented

def getContext(self):

Create and return an SSL context configured to use self._info as the info callback.

def _info(self, connection, where, ret):

This is the "info callback" on the context. It will be called periodically by pyOpenSSL with information about the state of a connection. When it indicates the handshake is complete, it will fire self._finished.

_finished =

A Deferred which will be called back when the handshake is done.

_method =

Undocumented