public class JabberIqRegister extends XMPPProcessor implements XMPPProcessorIfc
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
OAUTH_CONSUMERKEY_PROP_KEY
OAuth details for form verifier.
|
static String |
OAUTH_CONSUMERSECRET_PROP_KEY |
static String |
REGISTRATION_BLACKLIST_PROP_KEY
Whitelist properties
|
static String |
REGISTRATION_WHITELIST_PROP_KEY |
static String |
SIGNED_FORM_REQUIRED_PROP_KEY |
static String |
WHITELIST_REGISTRATION_ONLY_PROP_KEY |
ALL_NAMES, ALL_PATHS, cmpInfo
CLIENT_XMLNS
Constructor and Description |
---|
JabberIqRegister() |
Modifier and Type | Method and Description |
---|---|
void |
getStatistics(StatisticsList list)
The method allows to retrieve plugin own statistics if it generates any.
|
String |
id()
Method description
|
void |
init(Map<String,Object> settings)
Method
init is called just after the plugin has been loaded
into memory. |
protected boolean |
isRegistrationAllowedForConnection(tigase.xmpp.JID from) |
boolean |
isSignedFormRequired() |
void |
process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
void |
setOAuthCredentials(String oauthConsumerKey,
String oauthConsumerSecret) |
void |
setSignedFormRequired(boolean required) |
tigase.xml.Element[] |
supDiscoFeatures(XMPPResourceConnection session)
Method description
|
String[][] |
supElementNamePaths()
Method description
|
String[] |
supNamespaces()
Method description
|
tigase.xml.Element[] |
supStreamFeatures(XMPPResourceConnection session)
Method description
|
canHandle, compareTo, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getInstance, isSupporting, supElements, supTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, isSupporting, supElements, supTypes
compareTo
public static final String ID
public static final String REGISTRATION_BLACKLIST_PROP_KEY
public static final String REGISTRATION_WHITELIST_PROP_KEY
public static final String WHITELIST_REGISTRATION_ONLY_PROP_KEY
public static final String OAUTH_CONSUMERKEY_PROP_KEY
public static final String OAUTH_CONSUMERSECRET_PROP_KEY
public static final String SIGNED_FORM_REQUIRED_PROP_KEY
public void setOAuthCredentials(String oauthConsumerKey, String oauthConsumerSecret)
public void setSignedFormRequired(boolean required)
public String id()
id
in interface XMPPImplIfc
String
valuepublic void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings) throws XMPPException
process
in interface XMPPProcessorIfc
packet
- session
- repo
- results
- settings
- XMPPException
- TODO: Implement registration form configurable and loading
all the fields from the registration form TODO: rewrite the
plugin using the XMPPProcessorAbstract APIprotected boolean isRegistrationAllowedForConnection(tigase.xmpp.JID from)
public void getStatistics(StatisticsList list)
XMPPImplIfc
getStatistics
in interface XMPPImplIfc
getStatistics
in class XMPPProcessor
list
- is a statistics collection to which plugins own metrics can be added.public void init(Map<String,Object> settings) throws TigaseDBException
XMPPImplIfc
init
is called just after the plugin has been loaded
into memory. The idea behind this is to allow it to initialize or check the
database. This might be especially useful for plugins which want to have a
database access via non-standard stored procedures or need schema upgrade.init
in interface XMPPImplIfc
init
in class XMPPProcessor
settings
- is a Map with initial processor settings from the configuration
file.TigaseDBException
public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
supDiscoFeatures
in interface XMPPImplIfc
supDiscoFeatures
in class XMPPProcessor
session
- Element[]
valuepublic String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
supElementNamePaths
in class XMPPProcessor
String[][]
value is an array for element paths for which
the plugin offers processing capabilities. Each path is in form of a String array
in order to reduce parsing overhead.public String[] supNamespaces()
supNamespaces
in interface XMPPImplIfc
supNamespaces
in class XMPPProcessor
String[]
valuepublic tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
supStreamFeatures
in interface XMPPImplIfc
supStreamFeatures
in class XMPPProcessor
session
- Element[]
valuepublic boolean isSignedFormRequired()
Copyright © 2014 "Tigase, Inc.". All rights reserved.