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 Summary
-
Constructor Summary
ConstructorDescriptionConfigAwareSecurityMetadataSource
(org.craftercms.core.util.cache.CacheTemplate cacheTemplate) -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.security.access.ConfigAttribute>
Collection<org.springframework.security.access.ConfigAttribute>
getAttributes
(Object object) boolean
-
Field Details
-
URL_RESTRICTION_KEY
- See Also:
-
URL_RESTRICTION_URL_KEY
- See Also:
-
URL_RESTRICTION_EXPRESSION_KEY
- See Also:
-
URL_RESTRICTIONS_CACHE_KEY
- See Also:
-
cacheTemplate
protected org.craftercms.core.util.cache.CacheTemplate cacheTemplate
-
-
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 interfaceorg.springframework.security.access.SecurityMetadataSource
- Throws:
IllegalArgumentException
-
getAllConfigAttributes
- Specified by:
getAllConfigAttributes
in interfaceorg.springframework.security.access.SecurityMetadataSource
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.access.SecurityMetadataSource
-