Class DefaultMessageSecurityMetadataSource
java.lang.Object
org.springframework.security.messaging.access.intercept.DefaultMessageSecurityMetadataSource
- All Implemented Interfaces:
- org.springframework.aop.framework.AopInfrastructureBean,- SecurityMetadataSource,- MessageSecurityMetadataSource
@Deprecated
public final class DefaultMessageSecurityMetadataSource
extends Object
implements MessageSecurityMetadataSource
Deprecated.
A default implementation of 
MessageSecurityMetadataSource that looks up the
 ConfigAttribute instances using a MessageMatcher.
 
 Each entry is considered in order. The first entry that matches, the corresponding
 Collection<ConfigAttribute> is returned.
 
- Since:
- 4.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMessageSecurityMetadataSource(LinkedHashMap<MessageMatcher<?>, Collection<ConfigAttribute>> messageMap) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.If available, returns all of theConfigAttributes defined by the implementing class.getAttributes(Object object) Deprecated.Accesses theConfigAttributes that apply to a given secure object.booleanDeprecated.Indicates whether theSecurityMetadataSourceimplementation is able to provideConfigAttributes for the indicated secure object type.
- 
Constructor Details- 
DefaultMessageSecurityMetadataSourcepublic DefaultMessageSecurityMetadataSource(LinkedHashMap<MessageMatcher<?>, Collection<ConfigAttribute>> messageMap) Deprecated.
 
- 
- 
Method Details- 
getAttributesDeprecated.Description copied from interface:SecurityMetadataSourceAccesses theConfigAttributes that apply to a given secure object.- Specified by:
- getAttributesin interface- SecurityMetadataSource
- Parameters:
- object- the object being secured
- Returns:
- the attributes that apply to the passed in secured object. Should return an empty collection if there are no applicable attributes.
- Throws:
- IllegalArgumentException- if the passed object is not of a type supported by the- SecurityMetadataSourceimplementation
 
- 
getAllConfigAttributesDeprecated.Description copied from interface:SecurityMetadataSourceIf available, returns all of theConfigAttributes defined by the implementing class.This is used by the AbstractSecurityInterceptorto perform startup time validation of eachConfigAttributeconfigured against it.- Specified by:
- getAllConfigAttributesin interface- SecurityMetadataSource
- Returns:
- the ConfigAttributes ornullif unsupported
 
- 
supportsDeprecated.Description copied from interface:SecurityMetadataSourceIndicates whether theSecurityMetadataSourceimplementation is able to provideConfigAttributes for the indicated secure object type.- Specified by:
- supportsin interface- SecurityMetadataSource
- Parameters:
- clazz- the class that is being queried
- Returns:
- true if the implementation can process the indicated class
 
 
- 
MessageMatcherDelegatingAuthorizationManagerinstead