Class ApiMethodSecurityConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.annotation.ImportAware

    @EnableGlobalMethodSecurity(prePostEnabled=true)
    public class ApiMethodSecurityConfiguration
    extends org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
    The ApiMethodSecurityConfiguration class applies the API-specific method security configuration to the global method security configuration.
    Author:
    Marcus Portmann
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiMethodSecurityConfiguration​(org.springframework.context.ApplicationContext applicationContext)
      Constructs a new ApiMethodSecurityConfiguration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler createExpressionHandler()  
      org.springframework.security.access.expression.method.MethodSecurityExpressionHandler expressionHandler()  
      • Methods inherited from class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration

        accessDecisionManager, afterInvocationManager, afterSingletonsInstantiated, authenticationManager, configure, customMethodSecurityMetadataSource, getExpressionHandler, methodSecurityInterceptor, methodSecurityMetadataSource, preInvocationAuthorizationAdvice, runAsManager, setBeanFactory, setImportMetadata, setMethodSecurityExpressionHandler, setObjectPostProcessor
    • Constructor Detail

      • ApiMethodSecurityConfiguration

        public ApiMethodSecurityConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new ApiMethodSecurityConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • Method Detail

      • expressionHandler

        @Bean
        public org.springframework.security.access.expression.method.MethodSecurityExpressionHandler expressionHandler()
      • createExpressionHandler

        protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler createExpressionHandler()
        Overrides:
        createExpressionHandler in class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration