Class NoopSessionPolicy<U>
java.lang.Object
com.svenruppert.jsentinel.session.NoopSessionPolicy<U>
- Type Parameters:
U- subject type
- All Implemented Interfaces:
SessionPolicy<U>
Default
SessionPolicy — every navigation continues, login and
logout do nothing. Used as the resolver fallback when no SPI
implementation is registered.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeNavigation(SessionContext<U> context) Called before each protected navigation.static <U> NoopSessionPolicy<U> instance()Returns the singleton, narrowed to the caller's subject type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SessionPolicy
evaluate, onLogin, onLogoutModifier and TypeMethodDescriptiondefault SessionPolicyDecisionevaluate(SessionMetadata metadata) Pure-query lifetime check used by the VaadinSessionLifetimeListenerand the REST authentication / authorization filters.default SessionDecisiononLogin(SessionContext<U> context) Called after a successful login.default voidonLogout(SessionContext<U> context) Called when the subject explicitly logs out.
-
Constructor Details
-
NoopSessionPolicy
public NoopSessionPolicy()Public forServiceLoaderdiscovery. Preferinstance().
-
-
Method Details
-
instance
Returns the singleton, narrowed to the caller's subject type.- Type Parameters:
U- the caller's subject type- Returns:
- the shared
NoopSessionPolicyinstance
-