public final class SecurityRequestContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getUserId() |
static String |
getUserIP() |
static void |
setUserId(String userIdParam)
Set the userId on the current thread.
|
static void |
setUserIP(String userIPParam)
Set the userIP on the current thread.
|
static Principal |
toPrincipal()
Returns a
Principal for the user set on the current thread |
@Nullable public static String getUserId()
@Nullable public static String getUserIP()
public static void setUserId(String userIdParam)
userIdParam - userId to be setpublic static void setUserIP(String userIPParam)
userIPParam - userIP to be setCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.