Interface TokenRenderer
- All Known Implementing Classes:
BearerTokenRenderer
public interface TokenRenderer
Responsible for converting token information to an
AccessRefreshToken
.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionrender
(Authentication authentication, Integer expiresIn, String accessToken, @Nullable String refreshToken)
-
Method Details
-
render
AccessRefreshToken render(Integer expiresIn, String accessToken, @Nullable @Nullable String refreshToken) - Parameters:
expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT token- Returns:
- instance of
AccessRefreshToken
-
render
AccessRefreshToken render(Authentication authentication, Integer expiresIn, String accessToken, @Nullable @Nullable String refreshToken) - Parameters:
authentication
- Authenticated user's representation.expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT token- Returns:
- instance of
AccessRefreshToken
-