Class NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
- java.lang.Object
 - 
- org.springframework.security.oauth2.jwt.NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
 
 
- 
- Enclosing class:
 - NimbusJwtDecoder
 
public static final class NimbusJwtDecoder.SecretKeyJwtDecoderBuilder extends java.lang.ObjectA builder for creatingNimbusJwtDecoderinstances based on aSecretKey. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusJwtDecoderbuild()Build the configuredNimbusJwtDecoder.NimbusJwtDecoder.SecretKeyJwtDecoderBuilderjwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusJwtDecoder.NimbusJwtDecoder.SecretKeyJwtDecoderBuildermacAlgorithm(MacAlgorithm macAlgorithm)Use the given algorithm when generating the MAC. 
 - 
 
- 
- 
Method Detail
- 
macAlgorithm
public NimbusJwtDecoder.SecretKeyJwtDecoderBuilder 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 
NimbusJwtDecoder.SecretKeyJwtDecoderBuilderfor further configurations 
 
- 
jwtProcessorCustomizer
public NimbusJwtDecoder.SecretKeyJwtDecoderBuilder jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)
Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusJwtDecoder.- Parameters:
 jwtProcessorCustomizer- the callback used to alter the processor- Returns:
 - a 
NimbusJwtDecoder.SecretKeyJwtDecoderBuilderfor further configurations - Since:
 - 5.4
 
 
- 
build
public NimbusJwtDecoder build()
Build the configuredNimbusJwtDecoder.- Returns:
 - the configured 
NimbusJwtDecoder 
 
 - 
 
 -