public class ScramPlusMechanism extends AbstractScram
AbstractScram.BindType
UTF_CHARSET
SASL_COMPLETE_KEY
FORCE_AUTHZID
Modifier | Constructor and Description |
---|---|
|
ScramPlusMechanism() |
protected |
ScramPlusMechanism(String mechanismName,
String algorithm,
byte[] clientKey,
byte[] serverKey) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getBindData(AbstractScram.BindType bindType,
SessionObject sessionObject) |
protected AbstractScram.BindType |
getBindType(SessionObject sessionObject) |
protected List<AbstractScram.BindType> |
getServerBindTypes(SessionObject sessionObject) |
boolean |
isAllowedToUse(SessionObject sessionObject)
This method is used to check if mechanism can be used with current
session.
|
evaluateChallenge, getData, h, hi, hmac, key, name, normalize, randomString, xor
isComplete, setComplete
protected byte[] getBindData(AbstractScram.BindType bindType, SessionObject sessionObject)
getBindData
in class AbstractScram
protected AbstractScram.BindType getBindType(SessionObject sessionObject)
getBindType
in class AbstractScram
protected List<AbstractScram.BindType> getServerBindTypes(SessionObject sessionObject)
public boolean isAllowedToUse(SessionObject sessionObject)
SaslMechanism
isAllowedToUse
in interface SaslMechanism
isAllowedToUse
in class AbstractScram
sessionObject
- current SessionObjecttrue
if mechanism can be used it current XMPP session.Copyright © 2006–2023 Tigase. All rights reserved.