- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.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 java.lang.Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
Replace any DefaultMethodSecurityExpressionHandler
in the application context
with an OAuth2MethodSecurityExpressionHandler
.
- Since:
- 1.3.0