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(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, handlepublic SASLAnonymous(SASLAuthentication saslAuthentication)
protected java.lang.String getName()
SASLMechanismgetName in class SASLMechanismpublic void authenticate(java.lang.String username,
java.lang.String host,
javax.security.auth.callback.CallbackHandler cbh)
throws java.io.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.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
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.java.io.IOException - If a network error occurs while authenticating.protected void authenticate()
throws java.io.IOException
authenticate in class SASLMechanismjava.io.IOExceptionpublic void challengeReceived(java.lang.String challenge)
throws java.io.IOException
SASLMechanismchallengeReceived in class SASLMechanismchallenge - a base64 encoded string representing the challenge.java.io.IOException - if an exception sending the response occurs.Copyright © 2003-2007 Jive Software.