|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.auth.AuthModule
public class AuthModule
Module used for authentication. This module automatically selects better authentication module to use. Currently it choose between SaslModule and NonSaslAuthModule.
| Nested Class Summary | |
|---|---|
static class |
AuthModule.AuthEvent
|
static class |
AuthModule.DefaultCredentialsCallback
|
| Field Summary | |
|---|---|
static EventType |
AuthFailed
|
static String |
AUTHORIZED
|
static EventType |
AuthStart
|
static EventType |
AuthSuccess
|
static String |
CREDENTIALS_CALLBACK
|
static String |
FORCE_NON_SASL
If true then Non-SASL (XEP-0078) mechanism
is used. |
| Constructor Summary | |
|---|---|
AuthModule(Observable parentObservable,
SessionObject sessionObject,
XmppModulesManager modulesManager)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
true then Non-SASL (XEP-0078) mechanism
is used.Boolean
| Constructor Detail |
|---|
public AuthModule(Observable parentObservable,
SessionObject sessionObject,
XmppModulesManager modulesManager)
| Method Detail |
|---|
public static boolean isAuthAvailable(SessionObject sessionObject)
throws XMLException
XMLException
public void addListener(EventType eventType,
Listener<? extends BaseEvent> listener)
public void addListener(Listener<? extends BaseEvent> listener)
public Criteria getCriteria()
XmppModule
getCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
See Service Discovery Features
getFeatures in interface XmppModulepublic Observable getObservable()
public void login()
throws JaxmppException
JaxmppException
public void process(Element element)
throws XMPPException,
XMLException,
JaxmppException
XmppModule
process in interface XmppModuleelement - incoming XMPP stanza
XMPPException
XMLException
JaxmppExceptionpublic void removeAllListeners()
public void removeListener(EventType eventType,
Listener<? extends BaseEvent> listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||