public final class JwtAuthenticator extends Object implements Closeable
JwtClaims returning OAuthBearerJwsToken on success.| Modifier and Type | Field and Description |
|---|---|
static String |
CONFLUENT_ISSUER |
static String |
IAT_CLAIM_REQUIRED |
static String |
JTI_CLAIM_REQUIRED |
| Constructor and Description |
|---|
JwtAuthenticator(JwtAuthenticatorConfig config) |
JwtAuthenticator(String issuer,
CloseableVerificationKeyResolver keyResolver) |
JwtAuthenticator(String issuer,
CloseableVerificationKeyResolver keyResolver,
List<String> audience,
boolean audienceRequired) |
JwtAuthenticator(String issuer,
CloseableVerificationKeyResolver keyResolver,
List<String> audience,
Map<String,Boolean> claimOptions) |
| 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 static final String CONFLUENT_ISSUER
public static final String JTI_CLAIM_REQUIRED
public static final String IAT_CLAIM_REQUIRED
public JwtAuthenticator(String issuer, CloseableVerificationKeyResolver keyResolver, List<String> audience, Map<String,Boolean> claimOptions)
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