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.ObjectA builder for creatingNimbusReactiveJwtDecoderinstances.- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusReactiveJwtDecoderbuild()Build the configuredNimbusReactiveJwtDecoder.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilderjwsAlgorithm(JwsAlgorithm jwsAlgorithm)Use the given signing algorithm.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilderjwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer)Use the givenConsumerto customize theConfigurableJWTProcessorbefore 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.JwkSourceReactiveJwtDecoderBuilderfor further configurations
-
jwtProcessorCustomizer
public NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer)
Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusReactiveJwtDecoder.- Parameters:
jwtProcessorCustomizer- the callback used to alter the processor- Returns:
- a
NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilderfor further configurations - Since:
- 5.4
-
build
public NimbusReactiveJwtDecoder build()
Build the configuredNimbusReactiveJwtDecoder.- Returns:
- the configured
NimbusReactiveJwtDecoder
-
-