Package tigase.auth
Class BruteForceLockerBean
- java.lang.Object
-
- tigase.auth.BruteForceLockerBean
-
- All Implemented Interfaces:
Initializable,UnregisterAware,ComponentStatisticsProvider,StatisticsProviderIfc
@Bean(name="brute-force-locker", parent=SessionManager.class, active=true) public class BruteForceLockerBean extends Object implements Initializable, UnregisterAware, ComponentStatisticsProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBruteForceLockerBean.BruteForceLockerVHostExtensionstatic classBruteForceLockerBean.BruteForceLockerVHostExtensionProviderstatic classBruteForceLockerBean.Keystatic classBruteForceLockerBean.LoginLockedExceptionstatic classBruteForceLockerBean.Modestatic classBruteForceLockerBean.StatHolderstatic classBruteForceLockerBean.StatisticsEmitEventstatic classBruteForceLockerBean.Value
-
Constructor Summary
Constructors Constructor Description BruteForceLockerBean()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.stats.ComponentStatisticsProvider
belongsTo
-
-
-
-
Method Detail
-
getClientIp
public static String getClientIp(XMPPResourceConnection session)
-
addInvalidLogin
public void addInvalidLogin(XMPPResourceConnection session, String ip, BareJID jid)
-
addInvalidLogin
public void addInvalidLogin(XMPPResourceConnection session, String ip, BareJID jid, long currentTime)
-
canUserBeDisabled
public boolean canUserBeDisabled(XMPPResourceConnection session, String ip, BareJID jid)
-
clearAll
public void clearAll()
-
clearOutdated
public void clearOutdated()
-
clearOutdated
public void clearOutdated(long currentTime)
-
getStatistics
public void getStatistics(String compName, StatisticsList list)
- Specified by:
getStatisticsin interfaceStatisticsProviderIfc
-
initialize
public void initialize()
Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
isEnabled
public boolean isEnabled(XMPPResourceConnection session)
-
handleStatisticsEmitEvent
@HandleEvent(filter=remote) public void handleStatisticsEmitEvent(BruteForceLockerBean.StatisticsEmitEvent event)
-
isLoginAllowed
public boolean isLoginAllowed(XMPPResourceConnection session, String ip, BareJID jid)
-
isLoginAllowed
public boolean isLoginAllowed(XMPPResourceConnection session, String ip, BareJID jid, long currentTime)
-
beforeUnregister
public void beforeUnregister()
Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
everyHour
public void everyHour()
- Specified by:
everyHourin interfaceComponentStatisticsProvider
-
everyMinute
public void everyMinute()
- Specified by:
everyMinutein interfaceComponentStatisticsProvider
-
everySecond
public void everySecond()
- Specified by:
everySecondin interfaceComponentStatisticsProvider
-
-