Class LoginCache

java.lang.Object
de.xima.fc.security.cache.LoginCache

public class LoginCache extends Object
Cache storing user login attempts.
Since:
8.0.0
Author:
XIMA Media GmbH
  • Field Details

  • Constructor Details

    • LoginCache

      public LoginCache()
  • Method Details

    • addLoginAttempt

      public static LoginAttempt addLoginAttempt(String loginId)
    • 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

      public static org.ehcache.Cache<String,LoginAttempt> getInstance()
    • getLoginAttempts

      public static LoginAttempt getLoginAttempts(String loginId)
    • getLoginCount

      public static long getLoginCount()
    • init

      public static void init()
    • reinit

      public static void reinit()
      Reinitialize cache after configuration change
    • setLoginAttempts

      public static LoginAttempt setLoginAttempts(String loginId, long count)
    • shutdown

      public static void shutdown()
      Removes the cache instance
    • updateLoginCount

      public static void updateLoginCount()