Class MethodSecurityConfig

java.lang.Object
org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
org.ehrbase.application.abac.MethodSecurityConfig
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.annotation.ImportAware

@ConditionalOnProperty(name="abac.enabled") @Configuration @EnableGlobalMethodSecurity(prePostEnabled=true) public class MethodSecurityConfig extends org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler
    Registration of custom SpEL expressions, here to include ABAC checks.

    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

    Methods inherited from class java.lang.Object

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

    • MethodSecurityConfig

      public MethodSecurityConfig(AbacConfig abacConfig)
  • Method Details

    • createExpressionHandler

      protected org.springframework.security.access.expression.method.MethodSecurityExpressionHandler createExpressionHandler()
      Registration of custom SpEL expressions, here to include ABAC checks.
      Overrides:
      createExpressionHandler in class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration