Class NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder
java.lang.Object
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder
extends Object
A builder for creating 
NimbusReactiveJwtDecoder instances based on a public
 key.- Since:
- 5.2
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build the configuredNimbusReactiveJwtDecoder.jwtProcessorCustomizer(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer) Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusReactiveJwtDecoder.signatureAlgorithm(SignatureAlgorithm signatureAlgorithm) Use the given signing algorithm.
- 
Method Details- 
signatureAlgorithmpublic NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder signatureAlgorithm(SignatureAlgorithm signatureAlgorithm) Use the given signing algorithm. The value should be one of RS256, RS384, or RS512.- Parameters:
- signatureAlgorithm- the algorithm to use
- Returns:
- a NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilderfor further configurations
 
- 
jwtProcessorCustomizerpublic NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder jwtProcessorCustomizer(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer) Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusReactiveJwtDecoder.- Parameters:
- jwtProcessorCustomizer- the callback used to alter the processor
- Returns:
- a NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilderfor further configurations
- Since:
- 5.4
 
- 
buildBuild the configuredNimbusReactiveJwtDecoder.- Returns:
- the configured NimbusReactiveJwtDecoder
 
 
-