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) |
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)
throws org.jivesoftware.smack.SmackException
authenticateInternal in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackExceptionprotected byte[] getAuthenticationText()
throws org.jivesoftware.smack.SmackException
getAuthenticationText in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackExceptionpublic 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 void checkIfSuccessfulOrThrow()
throws org.jivesoftware.smack.SmackException
checkIfSuccessfulOrThrow in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackExceptionprotected byte[] evaluateChallenge(byte[] challenge)
throws org.jivesoftware.smack.SmackException
evaluateChallenge in class org.jivesoftware.smack.sasl.SASLMechanismorg.jivesoftware.smack.SmackExceptionpublic 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.