public class SCRAMSHA1Mechanism extends SASLMechanism
Modifier and Type | Field and Description |
---|---|
static 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(CallbackHandler cbh) |
void |
checkIfSuccessfulOrThrow() |
protected byte[] |
evaluateChallenge(byte[] challenge) |
protected byte[] |
getAuthenticationText()
Should return the initial response of the SASL mechanism.
|
String |
getName()
Returns the common name of the SASL mechanism.
|
int |
getPriority() |
SCRAMSHA1Mechanism |
newInstance() |
authenticate, authenticate, authenticateInternal, challengeReceived, compareTo, instanceForAuthentication, saslPrep, setSaslPrepTransformer, toBytes
public static final String NAME
public SCRAMSHA1Mechanism()
protected void authenticateInternal(CallbackHandler cbh) throws SmackException
authenticateInternal
in class SASLMechanism
SmackException
protected byte[] getAuthenticationText() throws SmackException
SASLMechanism
null
or an
empty array here.getAuthenticationText
in class SASLMechanism
SmackException
public String getName()
SASLMechanism
getName
in class SASLMechanism
public int getPriority()
getPriority
in class SASLMechanism
public SCRAMSHA1Mechanism newInstance()
newInstance
in class SASLMechanism
public void checkIfSuccessfulOrThrow() throws SmackException
checkIfSuccessfulOrThrow
in class SASLMechanism
SmackException
protected byte[] evaluateChallenge(byte[] challenge) throws SmackException
evaluateChallenge
in class SASLMechanism
SmackException