Class SpireJwtTokenRetriever

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

public class SpireJwtTokenRetriever extends Object implements org.apache.kafka.common.security.oauthbearer.JwtRetriever
A JwtRetriever that retrieves the JWT SVID from the Spire agent
  • Constructor Details

    • SpireJwtTokenRetriever

      public SpireJwtTokenRetriever(String spireAgentEndpoint, String audience)
  • Method Details

    • retrieve

      public String retrieve() throws org.apache.kafka.common.security.oauthbearer.JwtRetrieverException
      Specified by:
      retrieve in interface org.apache.kafka.common.security.oauthbearer.JwtRetriever
      Throws:
      org.apache.kafka.common.security.oauthbearer.JwtRetrieverException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.kafka.common.security.oauthbearer.internals.secured.OAuthBearerConfigurable
      Throws:
      IOException