class documentation

class HandshakeCallbackContextFactory: (source)

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): (source)

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): (source)

Undocumented

def getContext(self): (source)

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

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

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 = (source)

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

Undocumented