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()
public ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec opaqueToken()
protected void configure(ServerHttpSecurity http)
public ServerHttpSecurity and()