public class ConfigAwareSecurityMetadataSource extends Object implements org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
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.
Modifier and Type | Field and 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 and Description |
---|
ConfigAwareSecurityMetadataSource(org.craftercms.core.util.cache.CacheTemplate cacheTemplate) |
Modifier and Type | Method and Description |
---|---|
Collection<org.springframework.security.access.ConfigAttribute> |
getAllConfigAttributes() |
Collection<org.springframework.security.access.ConfigAttribute> |
getAttributes(Object object) |
boolean |
supports(Class<?> clazz) |
public static final String URL_RESTRICTION_KEY
public static final String URL_RESTRICTION_URL_KEY
public static final String URL_RESTRICTION_EXPRESSION_KEY
public static final String URL_RESTRICTIONS_CACHE_KEY
protected org.craftercms.core.util.cache.CacheTemplate cacheTemplate
public ConfigAwareSecurityMetadataSource(org.craftercms.core.util.cache.CacheTemplate cacheTemplate)
public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
getAttributes
in interface org.springframework.security.access.SecurityMetadataSource
IllegalArgumentException
public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
getAllConfigAttributes
in interface org.springframework.security.access.SecurityMetadataSource
public boolean supports(Class<?> clazz)
supports
in interface org.springframework.security.access.SecurityMetadataSource
Copyright © 2023 CrafterCMS. All rights reserved.