public class SASLAnonymous extends SASLMechanism
SASLMechanism.AuthMechanism, SASLMechanism.Challenge, SASLMechanism.Failure, SASLMechanism.Response, SASLMechanism.Success
authenticationId, 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, handle
public SASLAnonymous(SASLAuthentication saslAuthentication)
protected String getName()
SASLMechanism
getName
in class SASLMechanism
public void authenticate(String username, String host, CallbackHandler cbh) throws IOException
SASLMechanism
authenticate
in class SASLMechanism
username
- 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
SASLMechanism
SASLMechanism.authenticate(String, String, CallbackHandler)
whenever possible.authenticate
in class SASLMechanism
username
- 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 SASLMechanism
IOException
public void challengeReceived(String challenge) throws IOException
SASLMechanism
challengeReceived
in class SASLMechanism
challenge
- a base64 encoded string representing the challenge.IOException
- if an exception sending the response occurs.Copyright © 2003-2007 Jive Software.