public interface ResourceServerConfigurer
@EnableResourceServer
classes. Implement this interface to adjust the access
rules and paths that are protected by OAuth2 security. Applications may provide multiple instances of this interface,
and in general (like with other Security configurers), if more than one configures the same property, then the last
one wins. The configurers are sorted by Order
before being applied.Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Use this to configure the access rules for secure resources.
|
void |
configure(ResourceServerSecurityConfigurer resources)
Add resource-server specific properties (like a resource id).
|
void configure(ResourceServerSecurityConfigurer resources) throws Exception
resources
- configurer for the resource serverException
- if there is a problemvoid configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
OAuth2WebSecurityExpressionHandler
by default.http
- the current http filter configurationException
- if there is a problemCopyright © 2019. All rights reserved.