- All Implemented Interfaces:
- Aware, BeanFactoryPostProcessor, ApplicationContextAware
@Configuration
@ConditionalOnClass(value=org.springframework.security.oauth2.common.OAuth2AccessToken.class)
@ConditionalOnBean(value=org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration.class)
public class OAuth2MethodSecurityConfiguration
extends Object
implements BeanFactoryPostProcessor, ApplicationContextAware
Auto-configure an expression handler for method-level security (if the user already has
@EnableGlobalMethodSecurity
).
- Since:
- 1.3.0
- Author:
- Greg Turnquist, Dave Syer