Class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
-
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder extends java.lang.Object
A builder for creatingNimbusReactiveJwtDecoder
instances based on a JWK Set uri.- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusReactiveJwtDecoder
build()
Build the configuredNimbusReactiveJwtDecoder
.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
Append the given signing algorithm to the set of algorithms to use.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
Configure the list of algorithms to use with the givenConsumer
.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer)
Use the givenConsumer
to customize theConfigurableJWTProcessor
before passing it to the buildNimbusReactiveJwtDecoder
.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
webClient(org.springframework.web.reactive.function.client.WebClient webClient)
-
-
-
Method Detail
-
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(java.util.function.Consumer<java.util.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(java.util.function.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
public NimbusReactiveJwtDecoder build()
Build the configuredNimbusReactiveJwtDecoder
.- Returns:
- the configured
NimbusReactiveJwtDecoder
-
-