Class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
-
- Enclosing class:
- ServerHttpSecurity.OAuth2ResourceServerSpec
public class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec extends java.lang.ObjectConfigures JWT Resource Server Support
-
-
Constructor Summary
Constructors Constructor Description JwtSpec()
-
Method Summary
-
-
-
Method Detail
-
authenticationManager
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
Configures theReactiveAuthenticationManagerto use- Parameters:
authenticationManager- the authentication manager to use- Returns:
- the
JwtSpecfor additional configuration
-
jwtAuthenticationConverter
public 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
-
jwtDecoder
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtDecoder(ReactiveJwtDecoder jwtDecoder)
Configures theReactiveJwtDecoderto use- Parameters:
jwtDecoder- the decoder to use- Returns:
- the
JwtSpecfor additional configuration
-
publicKey
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec publicKey(java.security.interfaces.RSAPublicKey publicKey)
Configures aReactiveJwtDecoderthat leverages the providedRSAPublicKey- Parameters:
publicKey- the public key to use.- Returns:
- the
JwtSpecfor additional configuration
-
jwkSetUri
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwkSetUri(java.lang.String jwkSetUri)
Configures aReactiveJwtDecoderusing JSON Web Key (JWK) URL- Parameters:
jwkSetUri- the URL to use.- Returns:
- the
JwtSpecfor additional configuration
-
and
public ServerHttpSecurity.OAuth2ResourceServerSpec and()
-
configure
protected void configure(ServerHttpSecurity http)
-
getJwtDecoder
protected ReactiveJwtDecoder getJwtDecoder()
-
getJwtAuthenticationConverter
protected org.springframework.core.convert.converter.Converter<Jwt,? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> getJwtAuthenticationConverter()
-
-