Package org.jivesoftware.smack.sasl.core
Class SASLAnonymous
java.lang.Object
org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.core.SASLAnonymous
- All Implemented Interfaces:
Comparable<SASLMechanism>
Implementation of the SASL ANONYMOUS mechanism.
-
Field Summary
FieldsFields inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticationId, authorizationId, connection, connectionConfiguration, CRAMMD5, DIGESTMD5, EXTERNAL, GSSAPI, host, password, PLAIN, serviceName, sslSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
protected byte[]
Should return the initial response of the SASL mechanism.getName()
Returns the common name of the SASL mechanism.int
Get the priority of this SASL mechanism.boolean
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
afterFinalSaslChallenge, authenticate, authenticate, authenticateInternal, authzidSupported, challengeReceived, compareTo, evaluateChallenge, instanceForAuthentication, isAuthenticationSuccessful, isFinished, saslPrep, setException, throwExceptionIfRequired, toBytes, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SASLAnonymous
public SASLAnonymous()
-
-
Method Details
-
getName
Description copied from class:SASLMechanism
Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or GSSAPI.- Specified by:
getName
in classSASLMechanism
- Returns:
- the common name of the SASL mechanism.
-
getPriority
Description copied from class:SASLMechanism
Get the priority of this SASL mechanism. Lower values mean higher priority.- Specified by:
getPriority
in classSASLMechanism
- Returns:
- the priority of this SASL mechanism.
-
authenticateInternal
- Specified by:
authenticateInternal
in classSASLMechanism
-
getAuthenticationText
Description copied from class:SASLMechanism
Should return the initial response of the SASL mechanism. The returned byte array will be send base64 encoded to the server. SASL mechanism are free to returnnull
or an empty array here.- Specified by:
getAuthenticationText
in classSASLMechanism
- Returns:
- the initial response or null
-
newInstance
- Specified by:
newInstance
in classSASLMechanism
-
checkIfSuccessfulOrThrow
- Specified by:
checkIfSuccessfulOrThrow
in classSASLMechanism
-
requiresPassword
- Overrides:
requiresPassword
in classSASLMechanism
-