类 OAuth2MethodSecurityConfiguration

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware

    @Configuration
    @ConditionalOnClass(org.springframework.security.oauth2.common.OAuth2AccessToken.class)
    @ConditionalOnBean(org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration.class)
    public class OAuth2MethodSecurityConfiguration
    extends Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
    Auto-configure an expression handler for method-level security (if the user already has @EnableGlobalMethodSecurity).
    从以下版本开始:
    1.3.0
    • 方法详细资料

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        指定者:
        postProcessBeanFactory 在接口中 org.springframework.beans.factory.config.BeanFactoryPostProcessor
        抛出:
        org.springframework.beans.BeansException