public class SecurityContextUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
SecurityContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AclSid> |
getCurrentUser()
Gets the current principal (User or OAuthClient)
|
static <T extends BasicUser<?>> |
getMe()
Gets the me.
|
static String |
getUsername()
Gets the username.
|
public static String getUsername()
public static <T extends BasicUser<?>> T getMe()
T - the generic typepublic static <T extends AclSid> T getCurrentUser()
T - the generic typeCopyright © 2018 Global Crop Diversity Trust. All rights reserved.