public class SASLAnonymous extends SASLMechanism
SASLMechanism.AuthMechanism, SASLMechanism.Challenge, SASLMechanism.Failure, SASLMechanism.Response, SASLMechanism.SuccessauthenticationId, hostname, password, sc| Constructor and Description |
|---|
SASLAnonymous(SASLAuthentication saslAuthentication) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate() |
void |
authenticate(String username,
String host,
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.
|
void |
challengeReceived(String challenge)
The server is challenging the SASL mechanism for the stanza he just sent.
|
protected String |
getName()
Returns the common name of the SASL mechanism.
|
getSASLAuthentication, handlepublic SASLAnonymous(SASLAuthentication saslAuthentication)
protected String getName()
SASLMechanismgetName in class SASLMechanismpublic void authenticate(String username, String host, CallbackHandler cbh) throws IOException
SASLMechanismauthenticate in class SASLMechanismusername - the username of the user being authenticated.host - the hostname where the user account resides.cbh - the CallbackHandler to obtain user information.IOException - If a network error occures while authenticating.public void authenticate(String username, String host, String password) throws IOException
SASLMechanismSASLMechanism.authenticate(String, String, CallbackHandler) whenever possible.authenticate in class SASLMechanismusername - the username of the user being authenticated.host - the hostname where the user account resides.password - the password for this account.IOException - If a network error occurs while authenticating.protected void authenticate()
throws IOException
authenticate in class SASLMechanismIOExceptionpublic void challengeReceived(String challenge) throws IOException
SASLMechanismchallengeReceived in class SASLMechanismchallenge - a base64 encoded string representing the challenge.IOException - if an exception sending the response occurs.Copyright © 2003-2007 Jive Software.