Interface SecurityMetadataSource
- All Superinterfaces:
 org.springframework.aop.framework.AopInfrastructureBean
- All Known Subinterfaces:
 FilterInvocationSecurityMetadataSource,MessageSecurityMetadataSource,MethodSecurityMetadataSource
- All Known Implementing Classes:
 AbstractFallbackMethodSecurityMetadataSource,AbstractMethodSecurityMetadataSource,DefaultFilterInvocationSecurityMetadataSource,DefaultMessageSecurityMetadataSource,DelegatingMethodSecurityMetadataSource,ExpressionBasedFilterInvocationSecurityMetadataSource,Jsr250MethodSecurityMetadataSource,MapBasedMethodSecurityMetadataSource,PrePostAnnotationSecurityMetadataSource,SecuredAnnotationSecurityMetadataSource
public interface SecurityMetadataSource
extends org.springframework.aop.framework.AopInfrastructureBean
Implemented by classes that store and can identify the 
ConfigAttributes that
 applies to a given secure object invocation.- 
Method Summary
Modifier and TypeMethodDescriptionIf available, returns all of theConfigAttributes defined by the implementing class.getAttributes(Object object) Accesses theConfigAttributes that apply to a given secure object.booleanIndicates whether theSecurityMetadataSourceimplementation is able to provideConfigAttributes for the indicated secure object type. 
- 
Method Details
- 
getAttributes
Accesses theConfigAttributes that apply to a given secure object.- 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 theSecurityMetadataSourceimplementation
 - 
getAllConfigAttributes
Collection<ConfigAttribute> getAllConfigAttributes()If available, returns all of theConfigAttributes defined by the implementing class.This is used by the
AbstractSecurityInterceptorto perform startup time validation of eachConfigAttributeconfigured against it.- Returns:
 - the 
ConfigAttributes ornullif unsupported 
 - 
supports
Indicates whether theSecurityMetadataSourceimplementation is able to provideConfigAttributes for the indicated secure object type.- Parameters:
 clazz- the class that is being queried- Returns:
 - true if the implementation can process the indicated class
 
 
 -