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
ConstructorDescriptionModuleGlobalMethodSecurityConfiguration
(SecurityInfrastructure securityInfrastructure) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
ModuleGlobalMethodSecurityConfiguration
-
-
Method Details
-
createExpressionHandler
protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler createExpressionHandler()- Overrides:
createExpressionHandler
in classorg.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
-
authenticationManager
protected org.springframework.security.authentication.AuthenticationManager authenticationManager()- Overrides:
authenticationManager
in classorg.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
-