public class UserWebToken extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CLAIMS_FIRST_NAME |
static String |
CLAIMS_LAST_NAME |
static String |
CLAIMS_ROLE |
static String |
CLAIMS_USER_ID |
protected String |
firstName |
protected String |
lastName |
protected String |
role |
protected String |
userId |
| Constructor and Description |
|---|
UserWebToken(Map<String,Object> claims) |
UserWebToken(String userId,
String firstName,
String lastName,
String role) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFirstName() |
String |
getLastName() |
String |
getRole() |
String |
getUserId() |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setRole(String role) |
void |
setUserId(String userId) |
Map<String,Object> |
toJwtClaims() |
static Map<String,Object> |
toJwtClaims(String userId,
String firstName,
String lastName,
String role) |
public static final String CLAIMS_USER_ID
public static final String CLAIMS_FIRST_NAME
public static final String CLAIMS_LAST_NAME
public static final String CLAIMS_ROLE
protected String userId
protected String firstName
protected String lastName
protected String role
public String getUserId()
public void setUserId(String userId)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public String getRole()
public void setRole(String role)
Copyright © 2014 Ifremer. All rights reserved.