public class AuthModule extends Object implements XmppModule, ContextAware, InitializingModule
| Modifier and Type | Class and Description |
|---|---|
static interface |
AuthModule.AuthFailedHandler |
static interface |
AuthModule.AuthStartHandler |
static interface |
AuthModule.AuthSuccessHandler |
static class |
AuthModule.DefaultCredentialsCallback |
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZED |
static String |
CREDENTIALS_CALLBACK |
static String |
FORCE_NON_SASL
If
true then Non-SASL (XEP-0078) mechanism
is used. |
static String |
LOGIN_USER_NAME_KEY |
| Constructor and Description |
|---|
AuthModule() |
public static final String AUTHORIZED
public static final String CREDENTIALS_CALLBACK
public static final String FORCE_NON_SASL
public static final String LOGIN_USER_NAME_KEY
public static boolean isAuthAvailable(SessionObject sessionObject) throws XMLException
XMLExceptionpublic void addAuthFailedHandler(AuthModule.AuthFailedHandler handler)
public void addAuthStartHandler(AuthModule.AuthStartHandler handler)
public void addAuthSuccessHandler(AuthModule.AuthSuccessHandler handler)
public <H extends EventHandler> void addListener(Class<? extends Event<H>> type, EventListener listener)
public <H extends EventHandler> void addListener(EventListener listener)
public void afterRegister()
InitializingModuleafterRegister in interface InitializingModulepublic void beforeRegister()
InitializingModulebeforeRegister in interface InitializingModulepublic void beforeUnregister()
InitializingModulebeforeUnregister in interface InitializingModulepublic Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic void login()
throws JaxmppException
JaxmppExceptionpublic void process(Element element) throws JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaJaxmppExceptionpublic void remove(Class<? extends Event<?>> type, EventHandler handler)
public void remove(EventHandler handler)
public void removeAuthFailedHandler(AuthModule.AuthFailedHandler handler)
public void removeAuthStartHandler(AuthModule.AuthStartHandler handler)
public void removeAuthSuccessHandler(AuthModule.AuthSuccessHandler handler)
public void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2020 Tigase. All rights reserved.