Class JwtIssuerAuthCache
java.lang.Object
io.confluent.security.authentication.oauthbearer.JwtIssuer
io.confluent.security.auth.dataplane.JwtIssuerAuthCache
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.Configurable
public final class JwtIssuerAuthCache
extends io.confluent.security.authentication.oauthbearer.JwtIssuer
implements org.apache.kafka.common.Configurable, Closeable
Fetches Signature Verification key information from AuthCache according to issuer information
from the token claim.
Use the parameter domainWhiteList to restrict which Issuers may provide public key information.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaudience()static JwtIssuerAuthCache.Builderbuilder()voidclose()Closes the injected expedited-refresh coordinator (releasing its fetch thread pool and HTTP client) and clears the reference so resolution reverts to the inert path.voidio.confluent.security.authentication.oauthbearer.ConstrainedVerificationKeyResolverkeyResolver(Collection<io.confluent.security.authentication.oauthbearer.Constraint> constraints, io.confluent.security.util.SecurityContext context) Returns Signature Verification Key identified by AuthCachename()voidsetJwksRefresher(JwksRefresher jwksRefresher) Injects the expedited-refresh coordinator used bykeyResolver(Collection, SecurityContext).Methods inherited from class io.confluent.security.authentication.oauthbearer.JwtIssuer
createConsumer
-
Method Details
-
name
- Specified by:
namein classio.confluent.security.authentication.oauthbearer.JwtIssuer
-
audience
-
sessionUuid
-
setJwksRefresher
Injects the expedited-refresh coordinator used bykeyResolver(Collection, SecurityContext). Passingnull(the default) leaves resolution unchanged.- Parameters:
jwksRefresher- the refresher to wire into resolvers, ornullto disable
-
close
public void close()Closes the injected expedited-refresh coordinator (releasing its fetch thread pool and HTTP client) and clears the reference so resolution reverts to the inert path. Called once at broker shutdown byEnhancedOAuthBearerValidatorCallbackHandler#close().Idempotent: a
nullrefresher (feature disabled, never wired, or already closed) is a no-op, as is theNoOpJwksRefresherthatJwksRefresher.create(JwksFetchServiceClient, Metrics, Map)returns when the feature is off.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
keyResolver
public io.confluent.security.authentication.oauthbearer.ConstrainedVerificationKeyResolver keyResolver(Collection<io.confluent.security.authentication.oauthbearer.Constraint> constraints, io.confluent.security.util.SecurityContext context) Returns Signature Verification Key identified by AuthCache- Specified by:
keyResolverin classio.confluent.security.authentication.oauthbearer.JwtIssuer- Parameters:
constraints- Collection ofConstraintto be enforced.- Returns:
ConstrainedVerificationKeyResolver
-
builder
-
configure
-