Saros
Distributed Collaborative Editing and Distributed Party Programming
org.jivesoftware.smack.sasl.SASLGSSAPIMechanism Class Reference
Inheritance diagram for org.jivesoftware.smack.sasl.SASLGSSAPIMechanism:
org.jivesoftware.smack.sasl.SASLMechanism

List of all members.

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 ()

Detailed Description

Implementation of the SASL GSSAPI mechanism

Author:
Jay Kline

Constructor & Destructor Documentation

org.jivesoftware.smack.sasl.SASLGSSAPIMechanism.SASLGSSAPIMechanism ( SASLAuthentication  saslAuthentication)

Member Function Documentation

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.

Parameters:
usernamethe username of the user being authenticated.
hostthe hostname where the user account resides.
cbhthe CallbackHandler (not used with GSSAPI)
Exceptions:
IOExceptionIf 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.

Parameters:
usernamethe username of the user being authenticated.
hostthe hostname where the user account resides.
passwordthe password of the user (ignored for GSSAPI)
Exceptions:
IOExceptionIf 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.

Returns:
the common name of the SASL mechanism.

Implements org.jivesoftware.smack.sasl.SASLMechanism.

 All Classes Namespaces Files Functions Variables Enumerations