org.keycloak.protocol.oidc

## Interface TokenExchangeProvider

- All Superinterfaces:
    Provider
  All Known Implementing Classes:
    DefaultTokenExchangeProvider

      public interface TokenExchangeProvider
      extends Provider

  Provides token exchange mechanism for supported tokens
  Author:
    Dmitry Telegin

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | `exchange(TokenExchangeContext context)` Exchange the `token`.
    `boolean` | `supports(TokenExchangeContext context)` Check if exchange request is supported by this provider

    - ### Methods inherited from interface org.keycloak.provider.Provider

      `close`

- - ### Method Detail

    - #### 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

          javax.ws.rs.core.Response exchange(TokenExchangeContext context)

      Exchange the `token`.
      Parameters:
        `context` -
      Returns:
        response with a new token

Copyright © 2021 JBoss by Red Hat. All rights reserved.