public static final class NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
extends java.lang.Object
NimbusJwtDecoder instances based on a
JWK Set
uri.| Modifier and Type | Method and Description |
|---|---|
NimbusJwtDecoder |
build()
Build the configured
NimbusJwtDecoder. |
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder |
cache(org.springframework.cache.Cache cache)
Use the given
Cache to store
JWK Set. |
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder |
jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
Append the given signing
algorithm to the set of algorithms to use.
|
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder |
jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
Configure the list of
algorithms to use with the given
Consumer. |
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder |
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.JwkSetUriJwtDecoderBuilder |
restOperations(org.springframework.web.client.RestOperations restOperations)
|
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
signatureAlgorithm - the algorithm to useNimbusJwtDecoder.JwkSetUriJwtDecoderBuilder for further configurationspublic NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
Consumer.signatureAlgorithmsConsumer - a Consumer for further configuring
the algorithm listNimbusJwtDecoder.JwkSetUriJwtDecoderBuilder for further configurationspublic NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder restOperations(org.springframework.web.client.RestOperations restOperations)
RestOperations to coordinate with the authorization
servers indicated in the
JWK Set uri as well
as the Issuer.restOperations - public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder cache(org.springframework.cache.Cache cache)
Cache to store
JWK Set.cache - the Cache to be used to store JWK SetNimbusJwtDecoder.JwkSetUriJwtDecoderBuilder for further configurationspublic NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder 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.JwkSetUriJwtDecoderBuilder for further configurationspublic NimbusJwtDecoder build()
NimbusJwtDecoder.NimbusJwtDecoder