@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
DefaultMethodSecurityExpressionHandler in the application context
with an OAuth2MethodSecurityExpressionHandler.| Constructor and Description |
|---|
OAuth2MethodSecurityConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansException