Class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
- Enclosing class:
- ServerHttpSecurity.OAuth2ResourceServerSpec
Configures JWT Resource Server Support
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.authenticationManager(ReactiveAuthenticationManager authenticationManager) Configures theReactiveAuthenticationManagerto useprotected voidconfigure(ServerHttpSecurity http) protected org.springframework.core.convert.converter.Converter<Jwt,? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> protected ReactiveJwtDecoderConfigures aReactiveJwtDecoderusing JSON Web Key (JWK) URLjwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<Jwt, ? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> jwtAuthenticationConverter) jwtDecoder(ReactiveJwtDecoder jwtDecoder) Configures theReactiveJwtDecoderto usepublicKey(RSAPublicKey publicKey) Configures aReactiveJwtDecoderthat leverages the providedRSAPublicKey
- 
Constructor Details- 
JwtSpecpublic JwtSpec()
 
- 
- 
Method Details- 
authenticationManagerpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec authenticationManager(ReactiveAuthenticationManager authenticationManager) Configures theReactiveAuthenticationManagerto use- Parameters:
- authenticationManager- the authentication manager to use
- Returns:
- the JwtSpecfor additional configuration
 
- 
jwtAuthenticationConverterpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<Jwt, ? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> jwtAuthenticationConverter) - Parameters:
- jwtAuthenticationConverter- the converter to use
- Returns:
- the JwtSpecfor additional configuration
- Since:
- 5.1.1
 
- 
jwtDecoderpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtDecoder(ReactiveJwtDecoder jwtDecoder) Configures theReactiveJwtDecoderto use- Parameters:
- jwtDecoder- the decoder to use
- Returns:
- the JwtSpecfor additional configuration
 
- 
publicKeyConfigures aReactiveJwtDecoderthat leverages the providedRSAPublicKey- Parameters:
- publicKey- the public key to use.
- Returns:
- the JwtSpecfor additional configuration
 
- 
jwkSetUriConfigures aReactiveJwtDecoderusing JSON Web Key (JWK) URL- Parameters:
- jwkSetUri- the URL to use.
- Returns:
- the JwtSpecfor additional configuration
 
- 
andDeprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer)orjwt(Customizer.withDefaults())to stick with defaults. See the documentation for more details.
- 
configure
- 
getJwtDecoder
- 
getJwtAuthenticationConverterprotected org.springframework.core.convert.converter.Converter<Jwt,? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> getJwtAuthenticationConverter()
 
-