tigase.jaxmpp.core.client.xmpp.modules.auth
Class AuthModule
java.lang.Object
tigase.jaxmpp.core.client.xmpp.modules.auth.AuthModule
- All Implemented Interfaces:
- XmppModule
public class AuthModule
- extends Object
- implements XmppModule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthFailed
public static final EventType AuthFailed
AUTHORIZED
public static final String AUTHORIZED
- See Also:
- Constant Field Values
AuthStart
public static final EventType AuthStart
AuthSuccess
public static final EventType AuthSuccess
CREDENTIALS_CALLBACK
public static final String CREDENTIALS_CALLBACK
- See Also:
- Constant Field Values
FORCE_NON_SASL
public static final String FORCE_NON_SASL
- If
true then Non-SASL (XEP-0078) mechanism
is used.
Type: Boolean
- See Also:
- Constant Field Values
AuthModule
public AuthModule(Observable parentObservable,
SessionObject sessionObject,
XmppModulesManager modulesManager)
isAuthAvailable
public static boolean isAuthAvailable(SessionObject sessionObject)
throws XMLException
- Throws:
XMLException
addListener
public void addListener(EventType eventType,
Listener<? extends BaseEvent> listener)
addListener
public void addListener(Listener<? extends BaseEvent> listener)
getCriteria
public Criteria getCriteria()
- Description copied from interface:
XmppModule
- Criteria
- Specified by:
getCriteria in interface XmppModule
- Returns:
getFeatures
public String[] getFeatures()
- Description copied from interface:
XmppModule
Returns features what are implemented by Module.
See Service
Discovery Features
- Specified by:
getFeatures in interface XmppModule
- Returns:
- array of features
getObservable
public Observable getObservable()
login
public void login()
throws JaxmppException
- Throws:
JaxmppException
process
public void process(Element element)
throws XMPPException,
XMLException,
JaxmppException
- Description copied from interface:
XmppModule
- Main method of module. Module will process incoming stanza by call this
method.
- Specified by:
process in interface XmppModule
- Parameters:
element - incoming XMPP stanza
- Throws:
XMPPException
XMLException
JaxmppException
removeAllListeners
public void removeAllListeners()
removeListener
public void removeListener(EventType eventType,
Listener<? extends BaseEvent> listener)
Copyright © 2006-2012 Tigase. All Rights Reserved.