public abstract class SASLJavaXMechanism extends SASLMechanism
Modifier and Type | Field and Description |
---|---|
protected SaslClient |
sc |
authenticationId, authorizationId, connection, connectionConfiguration, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName, sslSession
Constructor and Description |
---|
SASLJavaXMechanism() |
Modifier and Type | Method and Description |
---|---|
protected void |
authenticateInternal() |
protected void |
authenticateInternal(CallbackHandler cbh) |
void |
checkIfSuccessfulOrThrow() |
protected byte[] |
evaluateChallenge(byte[] challenge)
Evaluate the SASL challenge.
|
protected byte[] |
getAuthenticationText()
Should return the initial response of the SASL mechanism.
|
abstract String |
getName()
Returns the common name of the SASL mechanism.
|
protected Map<String,String> |
getSaslProps() |
protected String |
getServerName() |
authenticate, authenticate, authzidSupported, challengeReceived, compareTo, getPriority, instanceForAuthentication, newInstance, saslPrep, toBytes, toString
protected SaslClient sc
public SASLJavaXMechanism()
public abstract String getName()
SASLMechanism
getName
in class SASLMechanism
public final void checkIfSuccessfulOrThrow() throws SmackException
checkIfSuccessfulOrThrow
in class SASLMechanism
SmackException
protected void authenticateInternal() throws SmackException
authenticateInternal
in class SASLMechanism
SmackException
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
protected byte[] evaluateChallenge(byte[] challenge) throws SmackException
SASLMechanism
evaluateChallenge
in class SASLMechanism
challenge
- challenge to evaluate.SmackException
- in case of an error.protected Map<String,String> getSaslProps()
protected String getServerName()