Class BearerTokenRenderer
java.lang.Object
io.micronaut.security.token.render.BearerTokenRenderer
- All Implemented Interfaces:
TokenRenderer
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrender
(Authentication authentication, Integer expiresIn, String accessToken, @Nullable String refreshToken)
-
Constructor Details
-
BearerTokenRenderer
public BearerTokenRenderer()
-
-
Method Details
-
render
public AccessRefreshToken render(Integer expiresIn, String accessToken, @Nullable @Nullable String refreshToken) - Specified by:
render
in interfaceTokenRenderer
- Parameters:
expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT token- Returns:
- instance of
AccessRefreshToken
-
render
public AccessRefreshToken render(Authentication authentication, Integer expiresIn, String accessToken, @Nullable @Nullable String refreshToken) - Specified by:
render
in interfaceTokenRenderer
- Parameters:
authentication
- Authenticated user's representation.expiresIn
- In millisecondsaccessToken
- JWT tokenrefreshToken
- JWT token- Returns:
- instance of
AccessRefreshToken
-