public class SecurityContext extends Object
The security context is stored in a ThreadLocalHolder.
| Constructor and Description |
|---|
SecurityContext(Session session,
Request request,
boolean root,
String runAs) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Explicitly clears the context value from the current thread.
|
static SecurityContext |
get() |
static ThreadLocal<SecurityContext> |
getHolder() |
Request |
getRequest() |
String |
getRunAs() |
Session |
getSession() |
String |
getUser() |
boolean |
isRoot() |
static void |
set(SecurityContext context) |
static void |
setHolder(ThreadLocal<SecurityContext> holder) |
public static void clear()
public static void set(SecurityContext context)
public static SecurityContext get()
public static ThreadLocal<SecurityContext> getHolder()
public static void setHolder(ThreadLocal<SecurityContext> holder)
public Session getSession()
public Request getRequest()
public String getUser()
public boolean isRoot()
public String getRunAs()
Copyright © 2005–2018 The Beangle Software. All rights reserved.