Class InMemoryLoginAttemptStore

java.lang.Object
com.svenruppert.jsentinel.bruteforce.InMemoryLoginAttemptStore
All Implemented Interfaces:
LoginAttemptStore

@ExperimentalJSentinelApi public final class InMemoryLoginAttemptStore extends Object implements LoginAttemptStore
In-memory LoginAttemptStore backed by a single ConcurrentHashMap. Suitable for tests, demos, and single-process applications.

Counters and last-failure instants are kept in a private package-local Ledger record, mutated atomically through compute/merge-style map operations.

  • Constructor Details

    • InMemoryLoginAttemptStore

      public InMemoryLoginAttemptStore()
      Creates an empty store.
  • Method Details