Class NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
-
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder extends java.lang.Object
A builder for creatingNimbusReactiveJwtDecoder
instances.- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusReactiveJwtDecoder
build()
Build the configuredNimbusReactiveJwtDecoder
.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
jwsAlgorithm(JwsAlgorithm jwsAlgorithm)
Use the given signing algorithm.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
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
.
-
-
-
Method Detail
-
jwsAlgorithm
public NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder jwsAlgorithm(JwsAlgorithm jwsAlgorithm)
Use the given signing algorithm.- Parameters:
jwsAlgorithm
- the algorithm to use- Returns:
- a
NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
for further configurations
-
jwtProcessorCustomizer
public NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder 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.JwkSourceReactiveJwtDecoderBuilder
for further configurations - Since:
- 5.4
-
build
public NimbusReactiveJwtDecoder build()
Build the configuredNimbusReactiveJwtDecoder
.- Returns:
- the configured
NimbusReactiveJwtDecoder
-
-