Class InMemoryCredentialStore

java.lang.Object
com.svenruppert.jsentinel.credential.store.InMemoryCredentialStore
All Implemented Interfaces:
CredentialStore

public final class InMemoryCredentialStore extends Object implements CredentialStore
In-memory CredentialStore backed by ConcurrentHashMap, suitable for tests, demos and small single-node deployments.

The CAS is implemented through ConcurrentHashMap.replace(Object, Object, Object) which uses the record's identity comparison — record equality is value-based, so two records with the same field values are considered equal. That means concurrent updates pinning the same witness deterministically resolve to a single winner (CWE-362).