public class AuthModule extends Object implements XmppModule
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthModule.AuthEvent |
static class |
AuthModule.DefaultCredentialsCallback |
| Modifier and Type | Field and Description |
|---|---|
static EventType |
AuthFailed |
static String |
AUTHORIZED |
static EventType |
AuthStart |
static EventType |
AuthSuccess |
static String |
CREDENTIALS_CALLBACK |
static String |
FORCE_NON_SASL
|
| Constructor and Description |
|---|
AuthModule(Observable parentObservable,
SessionObject sessionObject,
XmppModulesManager modulesManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<? extends BaseEvent> listener) |
void |
addListener(Listener<? extends BaseEvent> listener) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
Observable |
getObservable() |
static boolean |
isAuthAvailable(SessionObject sessionObject) |
void |
login() |
void |
process(Element element)
Main method of module.
|
void |
removeAllListeners() |
void |
removeListener(EventType eventType,
Listener<? extends BaseEvent> listener) |
public static final EventType AuthFailed
public static final String AUTHORIZED
public static final EventType AuthStart
public static final EventType AuthSuccess
public static final String CREDENTIALS_CALLBACK
public static final String FORCE_NON_SASL
public AuthModule(Observable parentObservable, SessionObject sessionObject, XmppModulesManager modulesManager)
public static boolean isAuthAvailable(SessionObject sessionObject) throws XMLException
XMLExceptionpublic Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic Observable getObservable()
public void login()
throws JaxmppException
JaxmppExceptionpublic void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionpublic void removeAllListeners()
Copyright © 2006–2014 Tigase. All rights reserved.