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(String username,
String host,
CallbackHandler cbh) |
void |
authenticate(String username,
String host,
String password) |
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.
|
authenticate, authenticate, getSASLAuthentication, handlepublic SASLAnonymous(SASLAuthentication saslAuthentication)
protected String getName()
SASLMechanismgetName in class SASLMechanismpublic void authenticate(String username, String host, CallbackHandler cbh) throws IOException, SmackException.NotConnectedException
public void authenticate(String username, String host, String password) throws IOException, SmackException.NotConnectedException
protected void authenticate() throws IOException, SmackException.NotConnectedException
authenticate in class SASLMechanismIOExceptionSmackException.NotConnectedExceptionpublic void challengeReceived(String challenge) throws IOException, SmackException.NotConnectedException
SASLMechanismchallengeReceived in class SASLMechanismchallenge - a base64 encoded string representing the challenge.IOException - if an exception sending the response occurs.SmackException.NotConnectedException