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