java.lang.Object
io.confluent.kafka.schemaregistry.client.security.bearerauth.oauth.CachedOauthTokenRetriever

public class CachedOauthTokenRetriever extends Object

CachedOauthTokenRetriever is a wrapper around JwtRetriever that will communicate with an OAuth/OIDC provider directly via HTTP to post client credentials (SchemaRegistryClientConfig.BEARER_AUTH_CLIENT_ID/ SchemaRegistryClientConfig.BEARER_AUTH_CLIENT_SECRET) to a publicized token endpoint URL (SchemaRegistryClientConfig.BEARER_AUTH_ISSUER_ENDPOINT_URL) inorder to fetch an access token.

This class adds caching mechanism over JwtRetriever using OauthTokenCache

Author:
Varun PV
  • Constructor Details

    • CachedOauthTokenRetriever

      public CachedOauthTokenRetriever()
  • Method Details

    • configure

      public void configure(org.apache.kafka.common.security.oauthbearer.JwtRetriever tokenRetriever, org.apache.kafka.common.security.oauthbearer.JwtValidator tokenValidator, OauthTokenCache oauthTokenCache)
    • getToken

      public String getToken()