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
XMLException
public void addMechanism(SaslMechanism mechanism)
public void addMechanism(SaslMechanism mechanism, boolean atFirstPlace)
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
protected Collection<String> getSupportedMechanisms() throws XMLException
XMLException
protected SaslMechanism guessSaslMechanism() throws XMLException
XMLException
public void login() throws JaxmppException
JaxmppException
public void process(Element element) throws JaxmppException
XmppModule
process
in interface XmppModule
element
- incoming XMPP stanzaJaxmppException
protected void processChallenge(Element element) throws JaxmppException
JaxmppException
protected void processFailure(Element element) throws JaxmppException
JaxmppException
protected void processSuccess(Element element) throws JaxmppException
JaxmppException
public void removeAllMechanisms()
public void setContext(Context context)
setContext
in interface ContextAware
Copyright © 2006–2022 Tigase. All rights reserved.