twisted.words.protocols.jabber.clientView Source (View In Hierarchy)
Authenticates an XmlStream against a Jabber server as a Client.
Under normal circumstances, the BasicAuthenticator generates the
once the stream has authenticated. However, it can also generate other
events, such as:
INVALID_USER_EVENT: Authentication failed, due to invalid username
AUTH_FAILED_EVENT: Authentication failed, due to invalid password
REGISTER_FAILED_EVENT: Registration failed
If authentication fails for any reason, you can attempt to register by
method. If the registration succeeds, a
will be fired. Otherwise, one of the above errors will be generated
|Class Variable||REGISTER_FAILED_EVENT||Token to signal that registration failed. (type:
|Method||associateWithStream||Called by the XmlStreamFactory when a connection has been made to the requested peer, and an XmlStream object has been instantiated.|
Inherited from ConnectAuthenticator:
|Method||connectionMade||Called by the XmlStream when the underlying socket connection is in place.|
|Method||initializeStream||Perform stream initialization procedures.|
|Method||streamStarted||Called by the XmlStream when the stream has started.|
|Instance Variable||xmlstream||The XmlStream that needs authentication (type:
Called by the XmlStreamFactory when a connection has been made to the requested peer, and an XmlStream object has been instantiated.
The default implementation just saves a handle to the new XmlStream.
|Parameters||xmlstream||The XmlStream that will be passing events to this Authenticator. (type: |