Class JwtAuthenticator
java.lang.Object
io.confluent.kafka.clients.plugins.auth.jwt.JwtAuthenticator
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJwtAuthenticator(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) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static StringextractSignature(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken jwt) issuer()org.apache.kafka.common.security.oauthbearer.OAuthBearerTokenorg.apache.kafka.common.security.oauthbearer.OAuthBearerTokenorg.apache.kafka.common.security.oauthbearer.OAuthBearerTokenlogin(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken token)
-
Field Details
-
CONFLUENT_ISSUER
- See Also:
-
JTI_CLAIM_REQUIRED
- See Also:
-
IAT_CLAIM_REQUIRED
- See Also:
-
-
Constructor Details
-
JwtAuthenticator
-
JwtAuthenticator
public JwtAuthenticator(String issuer, CloseableVerificationKeyResolver keyResolver, List<String> audience, boolean audienceRequired) -
JwtAuthenticator
-
JwtAuthenticator
-
-
Method Details
-
login
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(String jws, String scopeClaim) throws JwtVerificationException - Throws:
JwtVerificationException
-
login
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(String jws) throws JwtVerificationException - Throws:
JwtVerificationException
-
login
public org.apache.kafka.common.security.oauthbearer.OAuthBearerToken login(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken token) throws JwtVerificationException - Throws:
JwtVerificationException
-
extractSignature
public static String extractSignature(org.apache.kafka.common.security.oauthbearer.OAuthBearerToken jwt) -
issuer
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-