public class SpireJwtTokenRetriever extends Object implements org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetriever
AccessTokenRetriever that retrieves the JWT SVID from the Spire agent| Constructor and Description |
|---|
SpireJwtTokenRetriever(String spireAgentEndpoint,
String audience) |
public String retrieve() throws IOException
retrieve in interface org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetrieverIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.kafka.common.security.oauthbearer.internals.secured.AccessTokenRetrieverIOException