public static final class NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
extends java.lang.Object
NimbusJwtDecoder
instances based on a
SecretKey
.Modifier and Type | Method and Description |
---|---|
NimbusJwtDecoder |
build()
Build the configured
NimbusJwtDecoder . |
NimbusJwtDecoder.SecretKeyJwtDecoderBuilder |
jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)
Use the given
Consumer to customize the ConfigurableJWTProcessor before passing it to the build
NimbusJwtDecoder . |
NimbusJwtDecoder.SecretKeyJwtDecoderBuilder |
macAlgorithm(MacAlgorithm macAlgorithm)
Use the given
algorithm when generating the MAC.
|
public NimbusJwtDecoder.SecretKeyJwtDecoderBuilder macAlgorithm(MacAlgorithm macAlgorithm)
macAlgorithm
- the MAC algorithm to useNimbusJwtDecoder.SecretKeyJwtDecoderBuilder
for further configurationspublic NimbusJwtDecoder.SecretKeyJwtDecoderBuilder jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)
Consumer
to customize the ConfigurableJWTProcessor
before passing it to the build
NimbusJwtDecoder
.jwtProcessorCustomizer
- the callback used to alter the processorNimbusJwtDecoder.SecretKeyJwtDecoderBuilder
for further configurationspublic NimbusJwtDecoder build()
NimbusJwtDecoder
.NimbusJwtDecoder