org.jivesoftware.smack.sasl
Class SASLAnonymous
java.lang.Object
   org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.SASLMechanism
       org.jivesoftware.smack.sasl.SASLAnonymous
org.jivesoftware.smack.sasl.SASLAnonymous
- All Implemented Interfaces: 
- javax.security.auth.callback.CallbackHandler
- public class SASLAnonymous 
- extends SASLMechanism
Implementation of the SASL ANONYMOUS mechanism
- Author:
- Jay Kline
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SASLAnonymous
public SASLAnonymous(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
- Description copied from class: SASLMechanism
- Builds and sends the auth stanza to the server. The callback handler will handle
 any additional information, such as the authentication ID or realm, if it is needed.
 
- 
- Overrides:
- authenticatein class- SASLMechanism
 
- 
- Parameters:
- username- the username of the user being authenticated.
- host- the hostname where the user account resides.
- cbh- the CallbackHandler to obtain user information.
- Throws:
- IOException- If a network error occures while authenticating.
 
authenticate
public void authenticate(String username,
                         String host,
                         String password)
                  throws IOException
- Description copied from class: SASLMechanism
- Builds and sends the auth stanza to the server. Note that this method of
 authentication is not recommended, since it is very inflexable.  Use
 SASLMechanism.authenticate(String, String, CallbackHandler)whenever possible.
 
- 
- Overrides:
- authenticatein class- SASLMechanism
 
- 
- Parameters:
- username- the username of the user being authenticated.
- host- the hostname where the user account resides.
- password- the password for this account.
- Throws:
- IOException- If a network error occurs while authenticating.
 
authenticate
protected void authenticate()
                     throws IOException
- 
- Overrides:
- authenticatein class- SASLMechanism
 
- 
- Throws:
- IOException
 
challengeReceived
public void challengeReceived(String challenge)
                       throws IOException
- Description copied from class: SASLMechanism
- The server is challenging the SASL mechanism for the stanza he just sent. Send a
 response to the server's challenge.
 
- 
- Overrides:
- challengeReceivedin class- SASLMechanism
 
- 
- Parameters:
- challenge- a base64 encoded string representing the challenge.
- Throws:
- IOException- if an exception sending the response occurs.
 
Copyright © 2003-2007 Jive Software.