Class DefaultFilterInvocationSecurityMetadataSource
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,org.springframework.security.access.SecurityMetadataSource,FilterInvocationSecurityMetadataSource
- Direct Known Subclasses:
ExpressionBasedFilterInvocationSecurityMetadataSource
Stores an ordered map of RequestMatchers to ConfigAttribute
collections and provides matching of 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 pattern and access attributes of the
<intercept-url> elements defined as children of the <http> element are
combined to build the instance used by the FilterSecurityInterceptor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFilterInvocationSecurityMetadataSource(LinkedHashMap<RequestMatcher, Collection<org.springframework.security.access.ConfigAttribute>> requestMap) Deprecated.Sets the internal request map from the supplied map. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.security.access.ConfigAttribute>Deprecated.Collection<org.springframework.security.access.ConfigAttribute>getAttributes(Object object) Deprecated.booleanDeprecated.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerDeprecated.
-
-
Constructor Details
-
DefaultFilterInvocationSecurityMetadataSource
public DefaultFilterInvocationSecurityMetadataSource(LinkedHashMap<RequestMatcher, Collection<org.springframework.security.access.ConfigAttribute>> requestMap) Deprecated.Sets the internal request map from the supplied map. The key elements should be of typeRequestMatcher, which. The path stored in the key will depend on the type of the supplied UrlMatcher.- Parameters:
requestMap- order-preserving map of request definitions to attribute lists
-
-
Method Details
-
getAllConfigAttributes
Deprecated.- Specified by:
getAllConfigAttributesin interfaceorg.springframework.security.access.SecurityMetadataSource
-
getAttributes
Deprecated.- Specified by:
getAttributesin interfaceorg.springframework.security.access.SecurityMetadataSource
-
supports
Deprecated.- Specified by:
supportsin interfaceorg.springframework.security.access.SecurityMetadataSource
-
SecurityAnnotationScannerandAuthorizationManager. In the case of channel security, please seeHttpsRedirectFilter. In the case of web security, please seeAuthorizationManager.