Class NimbusJwtDecoder.PublicKeyJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusJwtDecoder.PublicKeyJwtDecoderBuilder
-
- Enclosing class:
- NimbusJwtDecoder
public static final class NimbusJwtDecoder.PublicKeyJwtDecoderBuilder extends java.lang.Object
A builder for creatingNimbusJwtDecoder
instances based on a public key.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NimbusJwtDecoder
build()
Build the configuredNimbusJwtDecoder
.NimbusJwtDecoder.PublicKeyJwtDecoderBuilder
signatureAlgorithm(SignatureAlgorithm signatureAlgorithm)
Use the given signing algorithm.
-
-
-
Method Detail
-
signatureAlgorithm
public 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.PublicKeyJwtDecoderBuilder
for further configurations
-
build
public NimbusJwtDecoder build()
Build the configuredNimbusJwtDecoder
.- Returns:
- the configured
NimbusJwtDecoder
-
-