public class SASLPlainMechanism extends SASLMechanism
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
authenticationId, connection, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName| Constructor and Description |
|---|
SASLPlainMechanism() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticateInternal(CallbackHandler cbh) |
void |
checkIfSuccessfulOrThrow() |
protected byte[] |
getAuthenticationText()
Should return the initial response of the SASL mechanism.
|
String |
getName()
Returns the common name of the SASL mechanism.
|
int |
getPriority() |
SASLPlainMechanism |
newInstance() |
authenticate, authenticate, authenticateInternal, challengeReceived, compareTo, evaluateChallenge, instanceForAuthentication, saslPrep, setSaslPrepTransformer, toBytespublic static final String NAME
public SASLPlainMechanism()
protected void authenticateInternal(CallbackHandler cbh) throws SmackException
authenticateInternal in class SASLMechanismSmackExceptionprotected byte[] getAuthenticationText() throws SmackException
SASLMechanismnull or an
empty array here.getAuthenticationText in class SASLMechanismSmackExceptionpublic String getName()
SASLMechanismgetName in class SASLMechanismpublic int getPriority()
getPriority in class SASLMechanismpublic SASLPlainMechanism newInstance()
newInstance in class SASLMechanismpublic void checkIfSuccessfulOrThrow() throws SmackException
checkIfSuccessfulOrThrow in class SASLMechanismSmackException