public final class JwtAuthenticator extends Object implements Closeable
JwtClaims
returning OAuthBearerJwsToken
on success.Constructor and Description |
---|
JwtAuthenticator(JwtAuthenticatorConfig config) |
JwtAuthenticator(String issuer,
CloseableVerificationKeyResolver keyResolver) |
JwtAuthenticator(String issuer,
CloseableVerificationKeyResolver keyResolver,
String audience) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static String |
extractSignature(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken jwt) |
String |
issuer() |
org.apache.kafka.common.security.oauthbearer.OAuthBearerToken |
login(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken token) |
org.apache.kafka.common.security.oauthbearer.OAuthBearerToken |
login(String jws) |
org.apache.kafka.common.security.oauthbearer.OAuthBearerToken |
login(String jws,
String scopeClaim) |
public JwtAuthenticator(String issuer, CloseableVerificationKeyResolver keyResolver, String audience)
public JwtAuthenticator(String issuer, CloseableVerificationKeyResolver keyResolver)
public JwtAuthenticator(JwtAuthenticatorConfig config)
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(String jws, String scopeClaim) throws JwtVerificationException
JwtVerificationException
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(String jws) throws JwtVerificationException
JwtVerificationException
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken token) throws JwtVerificationException
JwtVerificationException
public static String extractSignature(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken jwt)
public String issuer()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException