public class ServerHttpSecurity.OAuth2ResourceServerSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
Configures JWT Resource Server Support
|
class |
ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec
Configures Opaque Token Resource Server support
|
Constructor and Description |
---|
OAuth2ResourceServerSpec() |
public ServerHttpSecurity.OAuth2ResourceServerSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
ServerAccessDeniedHandler
to use for requests authenticating with
Bearer Tokens.
requests.accessDeniedHandler
- the ServerAccessDeniedHandler
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec authenticationEntryPoint(ServerAuthenticationEntryPoint entryPoint)
ServerAuthenticationEntryPoint
to use for requests authenticating with
Bearer Tokens.entryPoint
- the ServerAuthenticationEntryPoint
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec bearerTokenConverter(ServerAuthenticationConverter bearerTokenConverter)
ServerAuthenticationConverter
to use for requests authenticating with
Bearer Tokens.bearerTokenConverter
- The ServerAuthenticationConverter
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec authenticationManagerResolver(ReactiveAuthenticationManagerResolver<org.springframework.http.server.reactive.ServerHttpRequest> authenticationManagerResolver)
ReactiveAuthenticationManagerResolver
authenticationManagerResolver
- the ReactiveAuthenticationManagerResolver
ServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwt()
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec jwt(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec> jwtCustomizer)
jwtCustomizer
- the Customizer
to provide more options for
the ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
ServerHttpSecurity.OAuth2ResourceServerSpec
to customizepublic ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec opaqueToken()
ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec opaqueToken(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec> opaqueTokenCustomizer)
opaqueTokenCustomizer
- the Customizer
to provide more options for
the ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec
ServerHttpSecurity.OAuth2ResourceServerSpec
to customizeprotected void configure(ServerHttpSecurity http)
public ServerHttpSecurity and()