public class BearerAccessRefreshToken extends AccessRefreshToken
Constructor and Description |
---|
BearerAccessRefreshToken()
Necessary for JSON serialization.
|
BearerAccessRefreshToken(java.lang.String username,
java.util.Collection<java.lang.String> roles,
java.lang.Integer expiresIn,
java.lang.String accessToken,
java.lang.String refreshToken,
java.lang.String tokenType) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getRoles()
roles getter.
|
java.lang.String |
getUsername()
username getter.
|
void |
setRoles(java.util.List<java.lang.String> roles)
roles property setter.
|
void |
setUsername(java.lang.String username)
username setter.
|
getAccessToken, getExpiresIn, getRefreshToken, getTokenType
public BearerAccessRefreshToken()
public BearerAccessRefreshToken(java.lang.String username, java.util.Collection<java.lang.String> roles, java.lang.Integer expiresIn, java.lang.String accessToken, java.lang.String refreshToken, java.lang.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 java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- e.g. adminpublic java.util.Collection<java.lang.String> getRoles()
public void setRoles(java.util.List<java.lang.String> roles)
roles
- list of Strings e.g. ( [ROLE_USER, ROLE_ADMIN] )