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
|
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
XMLException
public 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()
InitializingModule
afterRegister
in interface InitializingModule
public void beforeRegister()
InitializingModule
beforeRegister
in interface InitializingModule
public void beforeUnregister()
InitializingModule
beforeUnregister
in interface InitializingModule
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
public void login() throws JaxmppException
JaxmppException
public void process(Element element) throws JaxmppException
XmppModule
process
in interface XmppModule
element
- incoming XMPP stanzaJaxmppException
public 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 ContextAware
Copyright © 2006–2023 Tigase. All rights reserved.