Package ch.tocco.nice2.security.api
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 void
remove()
Remove the context for the current thread.static void
set
(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.
-