Part of twisted.words.protocols.jabber.xmlstream View Source View In Hierarchy
TLS stream initializer for the initiating entity.
It is strongly required to include this initializer in the list of initializers for an XMPP stream. By default it will try to negotiate TLS. An XMPP server may indicate that TLS is required. If TLS is not desired, set thewanted
attribute to False instead of removing it from
the list of initializers, so a proper exception TLSRequired
can be raised.
Class Variables | wanted | indicates if TLS negotiation is wanted.
(type: bool
) |
Method | onProceed | Proceed with TLS negotiation and reset the XML stream. |
Method | onFailure | Undocumented |
Method | start | Start TLS negotiation. |
Inherited from BaseFeatureInitiatingInitializer:
Method | __init__ | Undocumented |
Method | initialize | Initiate the initialization. |
Start TLS negotiation.
This checks if the receiving entity requires TLS, the SSL library is
available and uses the required
and wanted
instance variables to determine what to do in the various different
cases.