public class SASLAnonymous extends SASLMechanism
SASLMechanism.AuthMechanism, SASLMechanism.Challenge, SASLMechanism.Response, SASLMechanism.SASLFailure, 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) |
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, handle
public SASLAnonymous(SASLAuthentication saslAuthentication)
protected String getName()
SASLMechanism
getName
in class SASLMechanism
public 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 SASLMechanism
IOException
SmackException.NotConnectedException
public void challengeReceived(String challenge) throws IOException, SmackException.NotConnectedException
SASLMechanism
challengeReceived
in class SASLMechanism
challenge
- a base64 encoded string representing the challenge.IOException
- if an exception sending the response occurs.SmackException.NotConnectedException