Class JwtIssuerJku
java.lang.Object
io.confluent.security.authentication.oauthbearer.JwtIssuer
io.confluent.security.authentication.oauthbearer.JwtIssuerJku
Fetches Signature Verification key information at the
URL found
in the tokens jku claim.
Use the parameter domainWhiteList to restrict which Issuers may provide public key information.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaudience()The recipient(s) for this token.static JwtIssuerJku.Builderbuilder()org.jose4j.jwt.consumer.JwtConsumercreateConsumer(Collection<Constraint> constraints, boolean requireSubjectClaim, io.confluent.security.util.SecurityContext context) Creates a newJwtConsumerto process incomingJsonWebSignatures.keyResolver(Collection<Constraint> constraints, io.confluent.security.util.SecurityContext context) Returns Signature Verification Key identified byHeaderParameterNames.JWK_SET_URLname()JsonWebSignatureIssuer name.
-
Method Details
-
name
JsonWebSignatureIssuer name. This should be the URL of the Authorization Server though there may be some cases where its not. -
audience
The recipient(s) for this token. -
keyResolver
public ConstrainedVerificationKeyResolver keyResolver(Collection<Constraint> constraints, io.confluent.security.util.SecurityContext context) Returns Signature Verification Key identified byHeaderParameterNames.JWK_SET_URL- Specified by:
keyResolverin classJwtIssuer- Parameters:
constraints- Collection ofConstraintto be enforced.- Returns:
ConstrainedVerificationKeyResolver
-
createConsumer
public org.jose4j.jwt.consumer.JwtConsumer createConsumer(Collection<Constraint> constraints, boolean requireSubjectClaim, io.confluent.security.util.SecurityContext context) Description copied from class:JwtIssuerCreates a newJwtConsumerto process incomingJsonWebSignatures.- Overrides:
createConsumerin classJwtIssuer- Parameters:
constraints- Custom collection ofConstraintinstances.- Returns:
JwtConsumerinstance.
-
builder
-