public class XOAuth2Mechanism extends Object implements SaslMechanism
| Modifier and Type | Field and Description |
|---|---|
static String |
X_OAUTH2_TOKEN_CALLBACK_KEY |
static String |
X_OAUTH2_TOKEN_KEY |
| Constructor and Description |
|---|
XOAuth2Mechanism() |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluateChallenge(String input,
SessionObject sessionObject)
Evaluating challenge received from server.
|
boolean |
isAllowedToUse(SessionObject sessionObject)
This method is used to check if mechanism can be used with current
session.
|
String |
name()
Return mechanism name.
|
public static final String X_OAUTH2_TOKEN_CALLBACK_KEY
public static final String X_OAUTH2_TOKEN_KEY
public String evaluateChallenge(String input, SessionObject sessionObject)
SaslMechanismevaluateChallenge in interface SaslMechanisminput - received datasessionObject - current SessionObjectpublic boolean isAllowedToUse(SessionObject sessionObject)
SaslMechanismisAllowedToUse in interface SaslMechanismsessionObject - current SessionObjecttrue if mechanism can be used it current XMPP
session.public String name()
SaslMechanismname in interface SaslMechanismCopyright © 2006–2014 Tigase. All rights reserved.