Class VaadinSessionSubjectStore
java.lang.Object
com.svenruppert.jsentinel.authorization.vaadin.VaadinSessionSubjectStore
- All Implemented Interfaces:
com.svenruppert.jsentinel.authorization.api.SubjectStore
public final class VaadinSessionSubjectStore
extends Object
implements com.svenruppert.jsentinel.authorization.api.SubjectStore
Default
SubjectStore implementation backed by VaadinSession.
Stores the subject as a session attribute keyed by its class type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> currentSubject(Class<T> subjectType) <T> voiddeleteCurrentSubject(Class<T> subjectType) <T> voidsetCurrentSubject(T subject, Class<T> subjectType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.svenruppert.jsentinel.authorization.api.SubjectStore
hasSubject
-
Constructor Details
-
VaadinSessionSubjectStore
public VaadinSessionSubjectStore()Creates a new instance.
-
-
Method Details
-
currentSubject
-
setCurrentSubject
- Specified by:
setCurrentSubjectin interfacecom.svenruppert.jsentinel.authorization.api.SubjectStore
-
deleteCurrentSubject
- Specified by:
deleteCurrentSubjectin interfacecom.svenruppert.jsentinel.authorization.api.SubjectStore
-