Class ModuleGlobalMethodSecurityConfiguration

java.lang.Object
org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
com.foreach.across.modules.spring.security.extensions.ModuleGlobalMethodSecurityConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.annotation.ImportAware

@ModuleConfiguration(exclude="SpringSecurityAclModule", optional=true) @ConditionalOnBean(SecurityInfrastructure.class) @EnableGlobalMethodSecurity(prePostEnabled=true) public class ModuleGlobalMethodSecurityConfiguration extends org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
Enables Spring method security in modules, ensuring that the same AuthenticationManager is being used. This exposes an AuthenticationManager delegate in every module.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.authentication.AuthenticationManager
     
    protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler
     

    Methods inherited from class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration

    accessDecisionManager, afterInvocationManager, afterSingletonsInstantiated, configure, customMethodSecurityMetadataSource, getExpressionHandler, methodSecurityInterceptor, methodSecurityMetadataSource, preInvocationAuthorizationAdvice, runAsManager, setBeanFactory, setImportMetadata, setMethodSecurityExpressionHandler, setObjectPostProcessor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModuleGlobalMethodSecurityConfiguration

      public ModuleGlobalMethodSecurityConfiguration(SecurityInfrastructure securityInfrastructure)
  • Method Details

    • createExpressionHandler

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

      protected org.springframework.security.authentication.AuthenticationManager authenticationManager()
      Overrides:
      authenticationManager in class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration