Class SASLJavaXMechanism
- java.lang.Object
-
- org.jivesoftware.smack.sasl.SASLMechanism
-
- org.jivesoftware.smack.sasl.javax.SASLJavaXMechanism
-
- All Implemented Interfaces:
java.lang.Comparable<org.jivesoftware.smack.sasl.SASLMechanism>
- Direct Known Subclasses:
SASLCramMD5Mechanism
,SASLDigestMD5Mechanism
,SASLExternalMechanism
,SASLGSSAPIMechanism
,SASLPlainMechanism
public abstract class SASLJavaXMechanism extends org.jivesoftware.smack.sasl.SASLMechanism
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.security.sasl.SaslClient
sc
-
Constructor Summary
Constructors Constructor Description SASLJavaXMechanism()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
authenticateInternal()
protected void
authenticateInternal(javax.security.auth.callback.CallbackHandler cbh)
void
checkIfSuccessfulOrThrow()
protected byte[]
evaluateChallenge(byte[] challenge)
protected byte[]
getAuthenticationText()
abstract java.lang.String
getName()
protected java.util.Map<java.lang.String,java.lang.String>
getSaslProps()
protected java.lang.String
getServerName()
-
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
afterFinalSaslChallenge, authenticate, authenticate, authzidSupported, challengeReceived, compareTo, getPriority, instanceForAuthentication, isAuthenticationSuccessful, isFinished, newInstance, saslPrep, setException, throwExceptionIfRequired, toBytes, toString
-
-
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
- Specified by:
getName
in classorg.jivesoftware.smack.sasl.SASLMechanism
-
checkIfSuccessfulOrThrow
public final void checkIfSuccessfulOrThrow() throws org.jivesoftware.smack.SmackException.SmackSaslException
- Specified by:
checkIfSuccessfulOrThrow
in classorg.jivesoftware.smack.sasl.SASLMechanism
- Throws:
org.jivesoftware.smack.SmackException.SmackSaslException
-
authenticateInternal
protected void authenticateInternal() throws SmackJavaxSaslException
- Overrides:
authenticateInternal
in classorg.jivesoftware.smack.sasl.SASLMechanism
- Throws:
SmackJavaxSaslException
-
authenticateInternal
protected void authenticateInternal(javax.security.auth.callback.CallbackHandler cbh) throws SmackJavaxSaslException
- Specified by:
authenticateInternal
in classorg.jivesoftware.smack.sasl.SASLMechanism
- Throws:
SmackJavaxSaslException
-
getAuthenticationText
protected byte[] getAuthenticationText() throws SmackJavaxSaslException
- Specified by:
getAuthenticationText
in classorg.jivesoftware.smack.sasl.SASLMechanism
- Throws:
SmackJavaxSaslException
-
evaluateChallenge
protected byte[] evaluateChallenge(byte[] challenge) throws SmackJavaxSaslException
- Overrides:
evaluateChallenge
in classorg.jivesoftware.smack.sasl.SASLMechanism
- Throws:
SmackJavaxSaslException
-
getSaslProps
protected java.util.Map<java.lang.String,java.lang.String> getSaslProps()
-
getServerName
protected java.lang.String getServerName()
-
-