org.jivesoftware.smack.sasl
Class SASLGSSAPIMechanism
java.lang.Object
   org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.SASLMechanism
       org.jivesoftware.smack.sasl.SASLGSSAPIMechanism
org.jivesoftware.smack.sasl.SASLGSSAPIMechanism
- All Implemented Interfaces: 
- javax.security.auth.callback.CallbackHandler
- public class SASLGSSAPIMechanism 
- extends SASLMechanism
Implementation of the SASL GSSAPI mechanism
- Author:
- Jay Kline
 
 
 
 
 
| Method Summary | 
|  void | authenticate(String username,
             String host,
             javax.security.auth.callback.CallbackHandler cbh)Builds and sends the auth stanza to the server.
 | 
|  void | authenticate(String username,
             String host,
             String password)Builds and sends the auth stanza to the server.
 | 
| protected  String | getName()Returns the common name of the SASL mechanism.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SASLGSSAPIMechanism
public SASLGSSAPIMechanism(SASLAuthentication saslAuthentication)
getName
protected String getName()
- Description copied from class: SASLMechanism
- Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or GSSAPI.
 
- 
- Specified by:
- getNamein class- SASLMechanism
 
- 
- Returns:
- the common name of the SASL mechanism.
 
authenticate
public void authenticate(String username,
                         String host,
                         javax.security.auth.callback.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.
 
- 
- Overrides:
- authenticatein class- SASLMechanism
 
- 
- Parameters:
- username- the username of the user being authenticated.
- host- the hostname where the user account resides.
- cbh- the CallbackHandler (not used with GSSAPI)
- Throws:
- IOException- If a network error occures while authenticating.
- XMPPException- If a protocol error occurs or the user is not authenticated.
 
authenticate
public void 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.
 
- 
- Overrides:
- authenticatein class- SASLMechanism
 
- 
- Parameters:
- 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)
- Throws:
- IOException- If a network error occures while authenticating.
- XMPPException- If a protocol error occurs or the user is not authenticated.
 
Copyright © 2003-2007 Jive Software.