Class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
-
- Enclosing class:
- NimbusReactiveJwtDecoder
public static final class NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder extends java.lang.Object
A builder for creatingNimbusReactiveJwtDecoder
instances based on a JWK Set uri.- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusReactiveJwtDecoder
build()
Build the configuredNimbusReactiveJwtDecoder
.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
Append the given signing algorithm to the set of algorithms to use.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
Configure the list of algorithms to use with the givenConsumer
.NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
webClient(org.springframework.web.reactive.function.client.WebClient webClient)
-
-
-
Method Detail
-
jwsAlgorithm
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
Append the given signing algorithm to the set of algorithms to use.- Parameters:
signatureAlgorithm
- the algorithm to use- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
jwsAlgorithms
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
Configure the list of algorithms to use with the givenConsumer
.- Parameters:
signatureAlgorithmsConsumer
- aConsumer
for further configuring the algorithm list- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
webClient
public NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder webClient(org.springframework.web.reactive.function.client.WebClient webClient)
Use the givenWebClient
to coordinate with the authorization servers indicated in the JWK Set uri as well as the Issuer.- Parameters:
webClient
-- Returns:
- a
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
for further configurations
-
build
public NimbusReactiveJwtDecoder build()
Build the configuredNimbusReactiveJwtDecoder
.- Returns:
- the configured
NimbusReactiveJwtDecoder
-
-