Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
SASLGSSAPIMechanism (SASLAuthentication saslAuthentication) | |
void | authenticate (String username, String host, CallbackHandler cbh) throws IOException, XMPPException |
void | authenticate (String username, String host, String password) throws IOException, XMPPException |
Protected Member Functions | |
String | getName () |
Implementation of the SASL GSSAPI mechanism
org.jivesoftware.smack.sasl.SASLGSSAPIMechanism.SASLGSSAPIMechanism | ( | SASLAuthentication | saslAuthentication | ) |
void org.jivesoftware.smack.sasl.SASLGSSAPIMechanism.authenticate | ( | String | username, |
String | host, | ||
CallbackHandler | cbh | ||
) | throws IOException, XMPPException |
Builds and sends the auth
stanza to the server. This overrides from the abstract class because the initial token needed for GSSAPI is binary, and not safe to put in a string, thus getAuthenticationText() cannot be used.
username | the username of the user being authenticated. |
host | the hostname where the user account resides. |
cbh | the CallbackHandler (not used with GSSAPI) |
IOException | If a network error occures while authenticating. |
Reimplemented from org.jivesoftware.smack.sasl.SASLMechanism.
void org.jivesoftware.smack.sasl.SASLGSSAPIMechanism.authenticate | ( | String | username, |
String | host, | ||
String | password | ||
) | throws IOException, XMPPException |
Builds and sends the auth
stanza to the server. This overrides from the abstract class because the initial token needed for GSSAPI is binary, and not safe to put in a string, thus getAuthenticationText() cannot be used.
username | the username of the user being authenticated. |
host | the hostname where the user account resides. |
password | the password of the user (ignored for GSSAPI) |
IOException | If a network error occures while authenticating. |
Reimplemented from org.jivesoftware.smack.sasl.SASLMechanism.
String org.jivesoftware.smack.sasl.SASLGSSAPIMechanism.getName | ( | ) | [protected, virtual] |
Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or GSSAPI.
Implements org.jivesoftware.smack.sasl.SASLMechanism.