Class LoginCache


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

      • LoginCache

        public LoginCache()
    • Method Detail

      • 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.
      • 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()