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