Class ConfigAwareSecurityMetadataSource

java.lang.Object
org.craftercms.engine.util.spring.security.ConfigAwareSecurityMetadataSource
All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean, org.springframework.security.access.SecurityMetadataSource, org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource

public class ConfigAwareSecurityMetadataSource extends Object implements org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
Implementation of FilterInvocationSecurityMetadataSource that uses site config.

Note: This class delegates the actual work to an instance of ExpressionBasedFilterInvocationSecurityMetadataSource because the class is final so it can't be extended.

Since:
3.1.5
Author:
joseross
  • Field Details

  • Constructor Details

    • ConfigAwareSecurityMetadataSource

      @ConstructorProperties("cacheTemplate") public ConfigAwareSecurityMetadataSource(org.craftercms.core.util.cache.CacheTemplate cacheTemplate)
  • Method Details

    • getAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
      Specified by:
      getAttributes in interface org.springframework.security.access.SecurityMetadataSource
      Throws:
      IllegalArgumentException
    • getAllConfigAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
      Specified by:
      getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSource
    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in interface org.springframework.security.access.SecurityMetadataSource