public abstract class SASLJavaXMechanism extends SASLMechanism
| Modifier and Type | Field and Description |
|---|---|
protected SaslClient |
sc |
authenticationId, connection, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName| 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) |
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, challengeReceived, compareTo, getPriority, instanceForAuthentication, newInstance, saslPrep, setSaslPrepTransformer, toBytesprotected SaslClient sc
public SASLJavaXMechanism()
public abstract String getName()
SASLMechanismgetName in class SASLMechanismpublic final void checkIfSuccessfulOrThrow() throws SmackException
checkIfSuccessfulOrThrow in class SASLMechanismSmackExceptionprotected void authenticateInternal() throws SmackException
authenticateInternal in class SASLMechanismSmackExceptionprotected void authenticateInternal(CallbackHandler cbh) throws SmackException
authenticateInternal in class SASLMechanismSmackExceptionprotected byte[] getAuthenticationText() throws SmackException
SASLMechanismnull or an
empty array here.getAuthenticationText in class SASLMechanismSmackExceptionprotected byte[] evaluateChallenge(byte[] challenge) throws SmackException
evaluateChallenge in class SASLMechanismSmackExceptionprotected Map<String,String> getSaslProps()
protected String getServerName()