Session creation factory that creates a session,
logs in, requests the roster, registers message and presence filters and
announces initial presence. Login is done via plaintext password
authentication.
jid:
[String | JID] The account information
("account@host/resouce")
Session creation factory that creates a session,
logs in, requests the roster, registers message and presence filters and
announces initial presence. Login is done via digest (SHA) password
authentication.
jid:
[String | JID] The account information
("account@host/resouce")
Creates a new session connected to the supplied host and port. The method
attempts to build a Jabber::Protocol::Connection object and
send the open_stream XML message. It then blocks to recieve the
element.
Authenticate (logs into) this session with the supplied credentials. The
method blocks waiting for a reply to the login message. Sets the
authenticated attribute based on result.
username:
[String] The username to use for authentication
password:
[String] The password to use for authentication
resource:
[String] The resource ID for this session
digest:
[Boolean=false] True to use digest authentication (not sending password in
the clear)
return:
[Boolean] Whether the authentication succeeded or failed