Class NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
java.lang.Object
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
extends Object
A builder for creating
NimbusReactiveJwtDecoder instances.- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the configuredNimbusReactiveJwtDecoder.jwsAlgorithm(JwsAlgorithm jwsAlgorithm) Use the given signing algorithm.jwtProcessorCustomizer(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.JWKSecurityContext>> jwtProcessorCustomizer) Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusReactiveJwtDecoder.
-
Method Details
-
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(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
Build the configuredNimbusReactiveJwtDecoder.- Returns:
- the configured
NimbusReactiveJwtDecoder
-