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(java.lang.String username,
java.lang.String host,
javax.security.auth.callback.CallbackHandler cbh)
Builds and sends the auth stanza to the server.
|
void |
authenticate(java.lang.String username,
java.lang.String host,
java.lang.String password)
Builds and sends the auth stanza to the server.
|
void |
challengeReceived(java.lang.String challenge)
The server is challenging the SASL mechanism for the stanza he just sent.
|
protected java.lang.String |
getName()
Returns the common name of the SASL mechanism.
|
getSASLAuthentication, handle
public SASLAnonymous(SASLAuthentication saslAuthentication)
protected java.lang.String getName()
SASLMechanism
getName
in class SASLMechanism
public void authenticate(java.lang.String username, java.lang.String host, javax.security.auth.callback.CallbackHandler cbh) throws java.io.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.java.io.IOException
- If a network error occures while authenticating.public void authenticate(java.lang.String username, java.lang.String host, java.lang.String password) throws java.io.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.java.io.IOException
- If a network error occurs while authenticating.protected void authenticate() throws java.io.IOException
authenticate
in class SASLMechanism
java.io.IOException
public void challengeReceived(java.lang.String challenge) throws java.io.IOException
SASLMechanism
challengeReceived
in class SASLMechanism
challenge
- a base64 encoded string representing the challenge.java.io.IOException
- if an exception sending the response occurs.Copyright © 2003-2007 Jive Software.