public class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
extends java.lang.Object
Constructor and Description |
---|
JwtSpec() |
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager
to useauthenticationManager
- the authentication manager to useJwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<Jwt,? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> jwtAuthenticationConverter)
jwtAuthenticationConverter
- the converter to useJwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtDecoder(ReactiveJwtDecoder jwtDecoder)
ReactiveJwtDecoder
to usejwtDecoder
- the decoder to useJwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec publicKey(java.security.interfaces.RSAPublicKey publicKey)
ReactiveJwtDecoder
that leverages the provided
RSAPublicKey
publicKey
- the public key to use.JwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwkSetUri(java.lang.String jwkSetUri)
ReactiveJwtDecoder
using
JSON Web Key
(JWK) URLjwkSetUri
- the URL to use.JwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec and()
protected void configure(ServerHttpSecurity http)
protected ReactiveJwtDecoder getJwtDecoder()
protected org.springframework.core.convert.converter.Converter<Jwt,? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> getJwtAuthenticationConverter()