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 Details

    • createKey

      @NonNull @NonNull String createKey(@NonNull @NonNull Authentication authentication)
      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 details
      token - The internal value
      Returns:
      The refresh token