Class NimbusJwtDecoder.PublicKeyJwtDecoderBuilder
java.lang.Object
org.springframework.security.oauth2.jwt.NimbusJwtDecoder.PublicKeyJwtDecoderBuilder
- Enclosing class:
- NimbusJwtDecoder
A builder for creating 
NimbusJwtDecoder instances based on a public key.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build the configuredNimbusJwtDecoder.jwtProcessorCustomizer(Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer) Use the givenConsumerto customize theConfigurableJWTProcessorbefore passing it to the buildNimbusJwtDecoder.signatureAlgorithm(SignatureAlgorithm signatureAlgorithm) Use the given signing algorithm.
- 
Method Details- 
signatureAlgorithmpublic NimbusJwtDecoder.PublicKeyJwtDecoderBuilder 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 NimbusJwtDecoder.PublicKeyJwtDecoderBuilderfor further configurations
 
- 
jwtProcessorCustomizerpublic NimbusJwtDecoder.PublicKeyJwtDecoderBuilder jwtProcessorCustomizer(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.PublicKeyJwtDecoderBuilderfor further configurations
- Since:
- 5.4
 
- 
buildBuild the configuredNimbusJwtDecoder.- Returns:
- the configured NimbusJwtDecoder
 
 
-