Package de.xima.fc.security.cache
Class LoginCache
java.lang.Object
de.xima.fc.security.cache.LoginCache
Cache storing user login attempts.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginAttempt
addLoginAttempt
(String loginId) static org.apache.commons.configuration2.event.EventListener<org.apache.commons.configuration2.builder.ConfigurationBuilderResultCreatedEvent>
Deprecated.This is meant only for internal use by this class.static org.ehcache.Cache<String,
LoginAttempt> static LoginAttempt
getLoginAttempts
(String loginId) static long
static void
init()
static void
reinit()
Reinitialize cache after configuration changestatic LoginAttempt
setLoginAttempts
(String loginId, long count) static void
shutdown()
Removes the cache instancestatic void
-
Field Details
-
CACHE_NAME
Name of the login cache.- See Also:
-
-
Constructor Details
-
LoginCache
public LoginCache()
-
-
Method Details
-
addLoginAttempt
-
getConfigurationChangeListener
@Deprecated public static org.apache.commons.configuration2.event.EventListener<org.apache.commons.configuration2.builder.ConfigurationBuilderResultCreatedEvent> getConfigurationChangeListener()Deprecated.This is meant only for internal use by this class.- Returns:
- The listener for when the application properties have changed. Reinitializes this cache.
-
getInstance
-
getLoginAttempts
-
getLoginCount
public static long getLoginCount() -
init
public static void init() -
reinit
public static void reinit()Reinitialize cache after configuration change -
setLoginAttempts
-
shutdown
public static void shutdown()Removes the cache instance -
updateLoginCount
public static void updateLoginCount()
-