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.AccessTokenRetriever, org.apache.kafka.common.security.oauthbearer.internals.secured.Initable

public class SpireJwtTokenRetriever extends Object implements org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever
A AccessTokenRetriever 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 IOException
      Specified by:
      retrieve in interface org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever
      Throws:
      IOException
    • close

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