Package tigase.xmpp.impl
Class SaslAuthAbstract
java.lang.Object
tigase.xmpp.XMPPProcessor
tigase.xmpp.impl.AbstractAuthPreprocessor
tigase.xmpp.impl.SaslAuthAbstract
- All Implemented Interfaces:
Comparable<XMPPImplIfc>,XMPPImplIfc,XMPPPreprocessorIfc,XMPPProcessorConcurrencyAwareIfc,XMPPProcessorIfc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected TigaseSaslProviderFields inherited from class tigase.xmpp.XMPPProcessor
ALL_NAMES, ALL_PATHS, cmpInfoFields inherited from interface tigase.xmpp.XMPPImplIfc
CLIENT_XMLNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods returns a preferable number of threads/packets queues for the plugin.protected PacketcreateSaslErrorResponse(XmppSaslException.SaslError error, String message, Packet packet) protected BareJIDextractUserJid(Exception e, XMPPResourceConnection session) Tries to extract BareJID of user who try to log in.protected abstract StringgetXmlns()protected voidonAuthFail(XMPPResourceConnection session) protected voidprocessSessionAlreadyAuthorized(Packet packet, XMPPResourceConnection session, Queue<Packet> results) protected abstract voidprocessSuccess(Packet packet, XMPPResourceConnection session, String challengeData, Queue<Packet> results) Methods inherited from class tigase.xmpp.impl.AbstractAuthPreprocessor
addInvalidLogin, disableUser, getAllowMatchers, isBruteForceLockerEnabled, isLoginAllowedByBruteForceLocker, isPacketAllowed, preProcess, saveIntoBruteForceLocker, setAllowMatchers, setBruteForceLockerMethods inherited from class tigase.xmpp.XMPPProcessor
canHandle, compareTo, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypes, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface tigase.xmpp.XMPPImplIfc
canHandle, getComponentInfo, getStatistics, id, init, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypesMethods inherited from interface tigase.xmpp.XMPPProcessorIfc
process
-
Field Details
-
SASL_SERVER_KEY
- See Also:
-
ALLOWED_SASL_MECHANISMS_KEY
- See Also:
-
props
-
saslProvider
-
-
Constructor Details
-
SaslAuthAbstract
public SaslAuthAbstract()
-
-
Method Details
-
concurrentQueuesNo
public int concurrentQueuesNo()Description copied from interface:XMPPImplIfcMethods returns a preferable number of threads/packets queues for the plugin. This number can be overwritten through configuration settings, however, a default value should be reasonably good for most standard installations. It is recommended to assign at least as much as twice a number of CPUs cores for I/O bound processing and number a number equal to CPUs cores for fast processing not slowed down by any I/O.- Specified by:
concurrentQueuesNoin interfaceXMPPImplIfc- Overrides:
concurrentQueuesNoin classXMPPProcessor- Returns:
- an integer preferred number of processing threads for the plugin.
-
createSaslErrorResponse
protected Packet createSaslErrorResponse(XmppSaslException.SaslError error, String message, Packet packet) -
extractUserJid
Tries to extract BareJID of user who try to log in.- Overrides:
extractUserJidin classAbstractAuthPreprocessor
-
getXmlns
-
onAuthFail
-
processSessionAlreadyAuthorized
protected void processSessionAlreadyAuthorized(Packet packet, XMPPResourceConnection session, Queue<Packet> results) -
processSuccess
protected abstract void processSuccess(Packet packet, XMPPResourceConnection session, String challengeData, Queue<Packet> results)
-