Interface RefreshTokenGenerator
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
-
Method Summary
Modifier and TypeMethodDescription@NonNull StringcreateKey(@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
-