@Singleton public class BearerTokenRenderer extends java.lang.Object implements TokenRenderer
Constructor and Description |
---|
BearerTokenRenderer() |
Modifier and Type | Method and Description |
---|---|
AccessRefreshToken |
render(java.lang.Integer expiresIn,
java.lang.String accessToken,
java.lang.String refreshToken) |
AccessRefreshToken |
render(UserDetails userDetails,
java.lang.Integer expiresIn,
java.lang.String accessToken,
java.lang.String refreshToken) |
public AccessRefreshToken render(java.lang.Integer expiresIn, java.lang.String accessToken, java.lang.String refreshToken)
render
in interface TokenRenderer
expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT tokenAccessRefreshToken
public AccessRefreshToken render(UserDetails userDetails, java.lang.Integer expiresIn, java.lang.String accessToken, java.lang.String refreshToken)
render
in interface TokenRenderer
userDetails
- Authenticated user's representation.expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT tokenAccessRefreshToken