public class SaslModule extends Object implements XmppModule
| Modifier and Type | Class and Description |
|---|---|
static class |
SaslModule.SaslError |
static class |
SaslModule.SaslEvent |
static class |
SaslModule.UnsupportedSaslMechanisms |
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
static String |
SASL_MECHANISM |
protected SessionObject |
sessionObject |
protected PacketWriter |
writer |
| Constructor and Description |
|---|
SaslModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<? extends BaseEvent> listener) |
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 |
removeListener(EventType eventType,
Listener<? extends BaseEvent> listener) |
public static final String SASL_MECHANISM
protected final Logger log
protected final SessionObject sessionObject
protected final PacketWriter writer
public SaslModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
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 XMLException,
JaxmppException
XMLExceptionJaxmppExceptionpublic void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionprotected void processChallenge(Element element) throws XMPPException, XMLException, JaxmppException
XMPPExceptionXMLExceptionJaxmppExceptionprotected void processFailure(Element element) throws JaxmppException
JaxmppExceptionprotected void processSuccess(Element element) throws JaxmppException
JaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.