Class NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder
java.lang.Object
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder
- Enclosing class:
 - NimbusReactiveJwtDecoder
 
public static final class NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder
extends Object
A builder for creating 
NimbusReactiveJwtDecoder instances based on a
 SecretKey.- Since:
 - 5.2
 
- 
Method Summary
Modifier 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.macAlgorithm(MacAlgorithm macAlgorithm) Use the given algorithm when generating the MAC. 
- 
Method Details
- 
macAlgorithm
public NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder macAlgorithm(MacAlgorithm macAlgorithm) Use the given algorithm when generating the MAC. The value should be one of HS256, HS384 or HS512.- Parameters:
 macAlgorithm- the MAC algorithm to use- Returns:
 - a 
NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilderfor further configurations 
 - 
jwtProcessorCustomizer
public NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder 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.SecretKeyReactiveJwtDecoderBuilderfor further configurations - Since:
 - 5.4
 
 - 
build
Build the configuredNimbusReactiveJwtDecoder.- Returns:
 - the configured 
NimbusReactiveJwtDecoder 
 
 -