Class VaadinSessionTokenCredentialStore
java.lang.Object
com.svenruppert.jsentinel.credential.propagation.vaadin.VaadinSessionTokenCredentialStore
- All Implemented Interfaces:
com.svenruppert.jsentinel.credential.propagation.TokenCredentialStore
@ExperimentalJSentinelApi
public final class VaadinSessionTokenCredentialStore
extends Object
implements com.svenruppert.jsentinel.credential.propagation.TokenCredentialStore
Vaadin-adapter default
TokenCredentialStore backed by
VaadinSession.
Stores the credential as a session attribute under a private
string key. Throws IllegalStateException on
bind(TokenCredential) when called outside an active Vaadin
session — the demo login flow runs inside a UI request thread.
current() and clear() are no-ops outside a session.
Registered via META-INF/services/...TokenCredentialStore
— the Vaadin-adapter module does not (yet) wire the
jSentinel-autoservice-processor, so registration is
hand-written next to the existing SubjectStore entry.
Single-thread per UI; not marked
ThreadSafeTokenCredentialStore — background-thread access is
an application bug, not a framework concern.
- Since:
- 00.74.00
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VaadinSessionTokenCredentialStore
public VaadinSessionTokenCredentialStore()
-
-
Method Details
-
bind
public void bind(com.svenruppert.jsentinel.credential.propagation.TokenCredential credential) - Specified by:
bindin interfacecom.svenruppert.jsentinel.credential.propagation.TokenCredentialStore
-
current
- Specified by:
currentin interfacecom.svenruppert.jsentinel.credential.propagation.TokenCredentialStore
-
clear
public void clear()- Specified by:
clearin interfacecom.svenruppert.jsentinel.credential.propagation.TokenCredentialStore
-