Interface TokenExchangeProvider

All Superinterfaces:
Provider

public interface TokenExchangeProvider extends Provider
Provides token exchange mechanism for supported tokens
Author:
Dmitry Telegin
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    Exchange the token.
    boolean
    Check if exchange request is supported by this provider

    Methods inherited from interface org.keycloak.provider.Provider

    close
  • Method Details

    • supports

      boolean supports(TokenExchangeContext context)
      Check if exchange request is supported by this provider
      Parameters:
      context - token exchange context
      Returns:
      true if the request is supported
    • exchange

      jakarta.ws.rs.core.Response exchange(TokenExchangeContext context)
      Exchange the token.
      Parameters:
      context -
      Returns:
      response with a new token