Package org.keycloak.protocol.oidc
Interface TokenExchangeProvider
- All Superinterfaces:
org.keycloak.provider.Provider
public interface TokenExchangeProvider
extends org.keycloak.provider.Provider
Provides token exchange mechanism for supported tokens
- Author:
- Dmitry Telegin
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responseexchange(TokenExchangeContext context) Exchange thetoken.booleansupports(TokenExchangeContext context) Check if exchange request is supported by this providerMethods inherited from interface org.keycloak.provider.Provider
close
-
Method Details
-
supports
Check if exchange request is supported by this provider- Parameters:
context- token exchange context- Returns:
- true if the request is supported
-
exchange
Exchange thetoken.- Parameters:
context-- Returns:
- response with a new token
-