public abstract class ScramMechanism extends SASLMechanism
authenticationId, authorizationId, connection, connectionConfiguration, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName, sslSession| Modifier | Constructor and Description |
|---|---|
protected |
ScramMechanism(ScramHmac scramHmac) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticateInternal(javax.security.auth.callback.CallbackHandler cbh) |
boolean |
authzidSupported() |
void |
checkIfSuccessfulOrThrow() |
protected byte[] |
evaluateChallenge(byte[] challenge)
Evaluate the SASL challenge.
|
protected byte[] |
getAuthenticationText()
Should return the initial response of the SASL mechanism.
|
protected byte[] |
getChannelBindingData() |
protected java.lang.String |
getGs2CbindFlag()
Get the SCRAM GSS-API Channel Binding Flag value.
|
java.lang.String |
getName()
Returns the common name of the SASL mechanism.
|
afterFinalSaslChallenge, authenticate, authenticate, authenticateInternal, challengeReceived, compareTo, getPriority, instanceForAuthentication, isAuthenticationSuccessful, isFinished, newInstance, requiresPassword, saslPrep, setException, throwExceptionIfRequired, toBytes, toStringprotected ScramMechanism(ScramHmac scramHmac)
protected void authenticateInternal(javax.security.auth.callback.CallbackHandler cbh)
authenticateInternal in class SASLMechanismprotected byte[] getAuthenticationText()
SASLMechanismnull or an
empty array here.getAuthenticationText in class SASLMechanismpublic java.lang.String getName()
SASLMechanismgetName in class SASLMechanismpublic void checkIfSuccessfulOrThrow()
throws SmackException.SmackSaslException
checkIfSuccessfulOrThrow in class SASLMechanismSmackException.SmackSaslExceptionpublic boolean authzidSupported()
authzidSupported in class SASLMechanismprotected byte[] evaluateChallenge(byte[] challenge)
throws SmackException.SmackSaslException
SASLMechanismevaluateChallenge in class SASLMechanismchallenge - challenge to evaluate.SmackException.SmackSaslException - If a SASL related error occurs.protected java.lang.String getGs2CbindFlag()
protected byte[] getChannelBindingData()
throws SmackException.SmackSaslException
SmackException.SmackSaslException - if a SASL specific error occurred.