public class NWebSecurityContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<NWebSecurityContext> |
current |
| Constructor and Description |
|---|
NWebSecurityContext(NWebUser user,
NWebToken token) |
| Modifier and Type | Method and Description |
|---|---|
static NWebSecurityContext |
currentRequired() |
NWebToken |
getToken() |
NWebUser |
getUser() |
static void |
runWith(NWebSecurityContext a,
net.thevpc.nuts.concurrent.NUnsafeRunnable callable,
net.thevpc.nuts.core.NSession session) |
NWebSecurityContext |
setToken(NWebToken token) |
NWebSecurityContext |
setUser(NWebUser user) |
public static ThreadLocal<NWebSecurityContext> current
public NWebUser getUser()
public NWebSecurityContext setUser(NWebUser user)
public NWebToken getToken()
public NWebSecurityContext setToken(NWebToken token)
public static NWebSecurityContext currentRequired()
public static void runWith(NWebSecurityContext a, net.thevpc.nuts.concurrent.NUnsafeRunnable callable, net.thevpc.nuts.core.NSession session) throws Throwable
ThrowableCopyright © 2026 vpc open source initiative. All rights reserved.