Interface BearerTokenProvider


public interface BearerTokenProvider
For manipulating and additional validation of access tokens and refresh tokens to meet specific implementation detail.
  • Method Details

    • isValid

      boolean isValid(BearerTokenProvider.AccessToken accessToken)
    • isValid

      default boolean isValid(BearerTokenProvider.RefreshToken refreshToken)
    • onBeforeCreate

      default void onBeforeCreate(BearerTokenProvider.AccessToken accessToken)
      Will be called when an access token is constructed to provide an opportunity to modify it before it is saved or returned to a client
      Parameters:
      accessToken -
    • onBeforeCreate

      default void onBeforeCreate(BearerTokenProvider.RefreshToken refreshToken)
      Will be called when a refresh token is constructed to provide an opportunity to modify it before it is saved or returned to a client
      Parameters:
      refreshToken -