Class MockSpireJwtTokenRetriever

java.lang.Object
io.confluent.kafka.clients.plugins.auth.oauth.MockSpireJwtTokenRetriever
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerConfigurable, org.apache.kafka.common.security.oauthbearer.JwtRetriever

public class MockSpireJwtTokenRetriever extends Object implements org.apache.kafka.common.security.oauthbearer.JwtRetriever
For testing
  • Constructor Details

    • MockSpireJwtTokenRetriever

      public MockSpireJwtTokenRetriever(String spireAgentEndpoint)
  • Method Details

    • retrieve

      public String retrieve()
      Specified by:
      retrieve in interface org.apache.kafka.common.security.oauthbearer.JwtRetriever
    • updateBearerCredential

      public static void updateBearerCredential(String bearerToken)