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 ofFilterInvocationSecurityMetadataSource
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
Fields Modifier and Type Field Description protected org.craftercms.core.util.cache.CacheTemplate
cacheTemplate
static String
URL_RESTRICTION_EXPRESSION_KEY
static String
URL_RESTRICTION_KEY
static String
URL_RESTRICTION_URL_KEY
static String
URL_RESTRICTIONS_CACHE_KEY
-
Constructor Summary
Constructors Constructor Description ConfigAwareSecurityMetadataSource(org.craftercms.core.util.cache.CacheTemplate cacheTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.springframework.security.access.ConfigAttribute>
getAllConfigAttributes()
Collection<org.springframework.security.access.ConfigAttribute>
getAttributes(Object object)
boolean
supports(Class<?> clazz)
-
-
-
Field Detail
-
URL_RESTRICTION_KEY
public static final String URL_RESTRICTION_KEY
- See Also:
- Constant Field Values
-
URL_RESTRICTION_URL_KEY
public static final String URL_RESTRICTION_URL_KEY
- See Also:
- Constant Field Values
-
URL_RESTRICTION_EXPRESSION_KEY
public static final String URL_RESTRICTION_EXPRESSION_KEY
- See Also:
- Constant Field Values
-
URL_RESTRICTIONS_CACHE_KEY
public static final String URL_RESTRICTIONS_CACHE_KEY
- See Also:
- Constant Field Values
-
cacheTemplate
protected org.craftercms.core.util.cache.CacheTemplate cacheTemplate
-
-
Constructor Detail
-
ConfigAwareSecurityMetadataSource
@ConstructorProperties("cacheTemplate") public ConfigAwareSecurityMetadataSource(org.craftercms.core.util.cache.CacheTemplate cacheTemplate)
-
-
Method Detail
-
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
public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
- Specified by:
getAllConfigAttributes
in interfaceorg.springframework.security.access.SecurityMetadataSource
-
supports
public boolean supports(Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.security.access.SecurityMetadataSource
-
-