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