public class SASLAnonymous extends SASLMechanism
SASLMechanism.AuthMechanism, SASLMechanism.Challenge, SASLMechanism.Response, SASLMechanism.SASLFailure, 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) |
void |
authenticate(java.lang.String username,
java.lang.String host,
java.lang.String password) |
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.
|
authenticate, authenticate, 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,
SmackException.NotConnectedException
java.io.IOExceptionSmackException.NotConnectedExceptionpublic void authenticate(java.lang.String username,
java.lang.String host,
java.lang.String password)
throws java.io.IOException,
SmackException.NotConnectedException
java.io.IOExceptionSmackException.NotConnectedExceptionprotected void authenticate()
throws java.io.IOException,
SmackException.NotConnectedException
authenticate in class SASLMechanismjava.io.IOExceptionSmackException.NotConnectedExceptionpublic void challengeReceived(java.lang.String challenge)
throws java.io.IOException,
SmackException.NotConnectedException
SASLMechanismchallengeReceived in class SASLMechanismchallenge - a base64 encoded string representing the challenge.java.io.IOException - if an exception sending the response occurs.SmackException.NotConnectedException