public class JwtPrincipal extends UserPrincipal
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DISPLAY_NAME |
static String |
KEY_ROLES |
static String |
KEY_USER_ID |
static String |
KEY_USER_NAME |
| Constructor and Description |
|---|
JwtPrincipal(com.appslandia.common.jose.JwtToken token) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
String |
getName() |
<T> T |
getObject(String key) |
<T> T |
getRequiredObject(String key) |
long |
getUserId() |
public static final String KEY_USER_ID
public static final String KEY_USER_NAME
public static final String KEY_DISPLAY_NAME
public static final String KEY_ROLES
public long getUserId()
getUserId in class UserPrincipalpublic String getName()
getName in interface PrincipalgetName in class UserPrincipalpublic String getDisplayName()
getDisplayName in class UserPrincipalpublic <T> T getObject(String key)
getObject in class UserPrincipalpublic <T> T getRequiredObject(String key) throws NullPointerException
getRequiredObject in class UserPrincipalNullPointerExceptionCopyright © 2018. All rights reserved.