public class SASLDigestMD5Mechanism
extends org.jivesoftware.smack.sasl.SASLMechanism
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SASLDigestMD5Mechanism() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticateInternal(javax.security.auth.callback.CallbackHandler cbh) |
boolean |
authzidSupported() |
void |
checkIfSuccessfulOrThrow() |
protected byte[] |
evaluateChallenge(byte[] challenge) |
protected byte[] |
getAuthenticationText() |
java.lang.String |
getName() |
int |
getPriority() |
SASLDigestMD5Mechanism |
newInstance() |
static java.lang.String |
quoteBackslash(java.lang.String string)
Quote the backslash in the given String.
|
static void |
setVerifyServerResponse(boolean verifyServerResponse) |
public static final java.lang.String NAME
public static void setVerifyServerResponse(boolean verifyServerResponse)
protected void authenticateInternal(javax.security.auth.callback.CallbackHandler cbh)
authenticateInternal in class org.jivesoftware.smack.sasl.SASLMechanismprotected byte[] getAuthenticationText()
getAuthenticationText in class org.jivesoftware.smack.sasl.SASLMechanismpublic java.lang.String getName()
getName in class org.jivesoftware.smack.sasl.SASLMechanismpublic int getPriority()
getPriority in class org.jivesoftware.smack.sasl.SASLMechanismpublic SASLDigestMD5Mechanism newInstance()
newInstance in class org.jivesoftware.smack.sasl.SASLMechanismpublic boolean authzidSupported()
authzidSupported in class org.jivesoftware.smack.sasl.SASLMechanismpublic void checkIfSuccessfulOrThrow()
throws org.jivesoftware.smack.SmackException.SmackSaslException
checkIfSuccessfulOrThrow in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackException.SmackSaslExceptionprotected byte[] evaluateChallenge(byte[] challenge)
throws org.jivesoftware.smack.SmackException.SmackSaslException
evaluateChallenge in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackException.SmackSaslExceptionpublic static java.lang.String quoteBackslash(java.lang.String string)
According to RFC 2831 ยง 7.2 a quoted-string consists either of qdtext or quoted-pair. And since quoted-pair is a backslash followed by a char, every backslash in qdtext must be quoted, since it otherwise would be treated as qdtext.
string - the input string.