Class 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
    • Constructor Detail

      • ConfigAwareSecurityMetadataSource

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

      • 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