public class BearerAccessRefreshToken extends AccessRefreshToken
Constructor and Description |
---|
BearerAccessRefreshToken()
Necessary for JSON serialization.
|
BearerAccessRefreshToken(String username,
Collection<String> roles,
Integer expiresIn,
String accessToken,
String refreshToken,
String tokenType) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getRoles()
roles getter.
|
String |
getUsername()
username getter.
|
void |
setRoles(List<String> roles)
roles property setter.
|
void |
setUsername(String username)
username setter.
|
getAccessToken, getExpiresIn, getRefreshToken, getTokenType
public BearerAccessRefreshToken()
public BearerAccessRefreshToken(String username, Collection<String> roles, Integer expiresIn, String accessToken, String refreshToken, String tokenType)
username
- a string e.g. adminroles
- Collection of Strings e.g. ( [ROLE_USER, ROLE_ADMIN] )expiresIn
- Access Token expirationaccessToken
- JWT tokenrefreshToken
- JWT tokentokenType
- Type of tokenpublic String getUsername()
public void setUsername(String username)
username
- e.g. adminpublic Collection<String> getRoles()