public class SaslModule extends Object implements XmppModule, ContextAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
SaslModule.SaslAuthFailedHandler |
static interface |
SaslModule.SaslAuthStartHandler |
static interface |
SaslModule.SaslAuthSuccessHandler |
static class |
SaslModule.SaslError |
static class |
SaslModule.UnsupportedSaslMechanisms |
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
static String |
SASL_MECHANISM |
| Constructor and Description |
|---|
SaslModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMechanism(SaslMechanism mechanism) |
void |
addMechanism(SaslMechanism mechanism,
boolean atFirstPlace) |
static List<String> |
getAllowedSASLMechanisms(SessionObject sessionObject) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
ArrayList<String> |
getMechanismsOrder() |
protected Collection<String> |
getSupportedMechanisms() |
protected SaslMechanism |
guessSaslMechanism() |
void |
login() |
void |
process(Element element)
Main method of module.
|
protected void |
processChallenge(Element element) |
protected void |
processFailure(Element element) |
protected void |
processSuccess(Element element) |
void |
removeAllMechanisms() |
void |
setContext(Context context) |
public static final String SASL_MECHANISM
protected final Logger log
public static List<String> getAllowedSASLMechanisms(SessionObject sessionObject) throws XMLException
XMLExceptionpublic void addMechanism(SaslMechanism mechanism)
public void addMechanism(SaslMechanism mechanism, boolean atFirstPlace)
public Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModuleprotected Collection<String> getSupportedMechanisms() throws XMLException
XMLExceptionprotected SaslMechanism guessSaslMechanism() throws XMLException
XMLExceptionpublic void login()
throws JaxmppException
JaxmppExceptionpublic void process(Element element) throws JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaJaxmppExceptionprotected void processChallenge(Element element) throws JaxmppException
JaxmppExceptionprotected void processFailure(Element element) throws JaxmppException
JaxmppExceptionprotected void processSuccess(Element element) throws JaxmppException
JaxmppExceptionpublic void removeAllMechanisms()
public void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2020 Tigase. All rights reserved.