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

def factoryAndDeferred(cls):

    contextFactory = cls()
    return (contextFactory, contextFactory._finished)
