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,
List<String> audience,
boolean audienceRequired) |
| 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, List<String> audience, boolean audienceRequired)
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
JwtVerificationExceptionpublic org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(String jws) throws JwtVerificationException
JwtVerificationExceptionpublic org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken token)
throws JwtVerificationException
JwtVerificationExceptionpublic static String extractSignature(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken jwt)
public String issuer()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException