Class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
java.lang.Object
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
extends Object
A builder for creating
NimbusReactiveJwtDecoder
instances based on a
JWK Set
uri.- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the configuredNimbusReactiveJwtDecoder
.jwsAlgorithm
(SignatureAlgorithm signatureAlgorithm) Append the given signing algorithm to the set of algorithms to use.jwsAlgorithms
(Consumer<Set<SignatureAlgorithm>> signatureAlgorithmsConsumer) Configure the list of algorithms to use with the givenConsumer
.jwtProcessorCustomizer
(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer) Use the givenConsumer
to customize theConfigurableJWTProcessor
before passing it to the buildNimbusReactiveJwtDecoder
.webClient
(org.springframework.web.reactive.function.client.WebClient webClient)
-
Method Details
-
jwsAlgorithm
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithm(SignatureAlgorithm signatureAlgorithm) Append the given signing algorithm to the set of algorithms to use.- Parameters:
signatureAlgorithm
- the algorithm to use- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
jwsAlgorithms
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithms(Consumer<Set<SignatureAlgorithm>> signatureAlgorithmsConsumer) Configure the list of algorithms to use with the givenConsumer
.- Parameters:
signatureAlgorithmsConsumer
- aConsumer
for further configuring the algorithm list- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
webClient
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder webClient(org.springframework.web.reactive.function.client.WebClient webClient) Use the givenWebClient
to coordinate with the authorization servers indicated in the JWK Set uri as well as the Issuer.- Parameters:
webClient
-- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
jwtProcessorCustomizer
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder jwtProcessorCustomizer(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer) Use the givenConsumer
to customize theConfigurableJWTProcessor
before passing it to the buildNimbusReactiveJwtDecoder
.- Parameters:
jwtProcessorCustomizer
- the callback used to alter the processor- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations - Since:
- 5.4
-
build
Build the configuredNimbusReactiveJwtDecoder
.- Returns:
- the configured
NimbusReactiveJwtDecoder
-