Interface RefreshTokenGenerator
- All Known Implementing Classes:
SignedRefreshTokenGenerator
public interface RefreshTokenGenerator
Responsible for generating refresh tokens. This class assumes the internal
value of the token will be transformed in some way before being sent to
the client.
- Since:
- 2.0.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
createKey
(@NonNull Authentication authentication) generate
(@NonNull Authentication authentication, @NonNull String token)
-
Method Details
-
createKey
- Parameters:
authentication
- The user details- Returns:
- The internal value that will persisted.
-
generate
@NonNull @NonNull Optional<String> generate(@NonNull @NonNull Authentication authentication, @NonNull @NonNull String token) - Parameters:
authentication
- The user detailstoken
- The internal value- Returns:
- The refresh token
-