Class SecurityContext.Current

java.lang.Object
ch.tocco.nice2.security.api.SecurityContext.Current
Enclosing interface:
SecurityContext

public static class SecurityContext.Current extends Object
  • Method Details

    • get

      public static Optional<SecurityContext> get()
      Get the context for the current thread.
      Returns:
      The context for the current thread.
    • set

      public static void set(SecurityContext securityContext)
      Set the context for the current thread.
    • remove

      public static void remove()
      Remove the context for the current thread.