public class DefaultFilterInvocationSecurityMetadataSource extends Object implements FilterInvocationSecurityMetadataSource
Stores an ordered map of
RequestMatchers to ConfigAttribute collections and provides matching
FilterInvocations against the items stored in the map.
The order of the
RequestMatchers in the map is very important. The first one which matches the
request will be used. Later matchers in the map will not be invoked if a match has already been found.
Accordingly, the most specific matchers should be registered first, with the most general matches registered last.
The most common method creating an instance is using the Spring Security namespace. For example, the
access attributes of the
<intercept-url> elements defined as children of the
<http> element are combined to build the instance used by the
|Modifier and Type||Field and Description|
|Constructor and Description|
Sets the internal request map from the supplied map.
|Modifier and Type||Method and Description|
If available, returns all of the
Indicates whether the
public DefaultFilterInvocationSecurityMetadataSource(LinkedHashMap<RequestMatcher,Collection<ConfigAttribute>> requestMap)
RequestMatcher, which. The path stored in the key will depend on the type of the supplied UrlMatcher.
requestMap- order-preserving map of request definitions to attribute lists
public Collection<ConfigAttribute> getAllConfigAttributes()
ConfigAttributes defined by the implementing class.
This is used by the
AbstractSecurityInterceptor to perform startup time validation of each
ConfigAttribute configured against it.
public Collection<ConfigAttribute> getAttributes(Object object)
ConfigAttributes that apply to a given secure object.
public boolean supports(Class<?> clazz)
SecurityMetadataSourceimplementation is able to provide
ConfigAttributes for the indicated secure object type.