Class SecurityContext.Current
java.lang.Object
ch.tocco.nice2.security.api.SecurityContext.Current
- Enclosing interface:
SecurityContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<SecurityContext> get()Get the context for the current thread.static voidremove()Remove the context for the current thread.static voidset(SecurityContext securityContext) Set the context for the current thread.
-
Method Details
-
get
Get the context for the current thread.- Returns:
- The context for the current thread.
-
set
Set the context for the current thread. -
remove
public static void remove()Remove the context for the current thread.
-