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() |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity.OAuth2ResourceServerSpec |
accessDeniedHandler(org.springframework.security.web.server.authorization.ServerAccessDeniedHandler accessDeniedHandler)
Configures the
ServerAccessDeniedHandler to use for requests authenticating with
Bearer Tokens. |
ServerHttpSecurity |
and() |
ServerHttpSecurity.OAuth2ResourceServerSpec |
authenticationEntryPoint(org.springframework.security.web.server.ServerAuthenticationEntryPoint entryPoint)
Configures the
ServerAuthenticationEntryPoint to use for requests authenticating with
Bearer Tokens. |
ServerHttpSecurity.OAuth2ResourceServerSpec |
authenticationManagerResolver(org.springframework.security.authentication.ReactiveAuthenticationManagerResolver<org.springframework.http.server.reactive.ServerHttpRequest> authenticationManagerResolver)
Configures the
ReactiveAuthenticationManagerResolver |
ServerHttpSecurity.OAuth2ResourceServerSpec |
bearerTokenConverter(org.springframework.security.web.server.authentication.ServerAuthenticationConverter bearerTokenConverter)
Configures the
ServerAuthenticationConverter to use for requests authenticating with
Bearer Tokens. |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
jwt()
Enables JWT Resource Server support.
|
ServerHttpSecurity.OAuth2ResourceServerSpec |
jwt(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec> jwtCustomizer)
Enables JWT Resource Server support.
|
ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec |
opaqueToken()
Enables Opaque Token Resource Server support.
|
ServerHttpSecurity.OAuth2ResourceServerSpec |
opaqueToken(Customizer<ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec> opaqueTokenCustomizer)
Enables Opaque Token Resource Server support.
|
public ServerHttpSecurity.OAuth2ResourceServerSpec accessDeniedHandler(org.springframework.security.web.server.authorization.ServerAccessDeniedHandler accessDeniedHandler)
ServerAccessDeniedHandler to use for requests authenticating with
Bearer Tokens.
requests.accessDeniedHandler - the ServerAccessDeniedHandler to useServerHttpSecurity.OAuth2ResourceServerSpec for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec authenticationEntryPoint(org.springframework.security.web.server.ServerAuthenticationEntryPoint entryPoint)
ServerAuthenticationEntryPoint to use for requests authenticating with
Bearer Tokens.entryPoint - the ServerAuthenticationEntryPoint to useServerHttpSecurity.OAuth2ResourceServerSpec for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec bearerTokenConverter(org.springframework.security.web.server.authentication.ServerAuthenticationConverter bearerTokenConverter)
ServerAuthenticationConverter to use for requests authenticating with
Bearer Tokens.bearerTokenConverter - The ServerAuthenticationConverter to useServerHttpSecurity.OAuth2ResourceServerSpec for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec authenticationManagerResolver(org.springframework.security.authentication.ReactiveAuthenticationManagerResolver<org.springframework.http.server.reactive.ServerHttpRequest> authenticationManagerResolver)
ReactiveAuthenticationManagerResolverauthenticationManagerResolver - the ReactiveAuthenticationManagerResolverServerHttpSecurity.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.JwtSpecServerHttpSecurity.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.OpaqueTokenSpecServerHttpSecurity.OAuth2ResourceServerSpec to customizeprotected void configure(ServerHttpSecurity http)
public ServerHttpSecurity and()