public class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
extends java.lang.Object
| Constructor and Description |
|---|
JwtSpec() |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity.OAuth2ResourceServerSpec |
and() |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
Configures the
ReactiveAuthenticationManager to use |
protected void |
configure(ServerHttpSecurity http) |
protected org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> |
getJwtAuthenticationConverter() |
protected org.springframework.security.oauth2.jwt.ReactiveJwtDecoder |
getJwtDecoder() |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
jwkSetUri(java.lang.String jwkSetUri)
Configures a
ReactiveJwtDecoder using
JSON Web Key (JWK) URL |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
jwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
Configures the
Converter to use for converting a Jwt into
an AbstractAuthenticationToken. |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
jwtDecoder(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
Configures the
ReactiveJwtDecoder to use |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
publicKey(java.security.interfaces.RSAPublicKey publicKey)
Configures a
ReactiveJwtDecoder that leverages the provided RSAPublicKey |
public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager to useauthenticationManager - the authentication manager to useJwtSpec for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
Converter to use for converting a Jwt into
an AbstractAuthenticationToken.jwtAuthenticationConverter - the converter to useJwtSpec for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtDecoder(org.springframework.security.oauth2.jwt.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 RSAPublicKeypublicKey - 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 org.springframework.security.oauth2.jwt.ReactiveJwtDecoder getJwtDecoder()
protected org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> getJwtAuthenticationConverter()