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 theConfigAttribute
s that applies to a given secure object invocation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ConfigAttribute>
getAllConfigAttributes()
If available, returns all of theConfigAttribute
s defined by the implementing class.java.util.Collection<ConfigAttribute>
getAttributes(java.lang.Object object)
Accesses theConfigAttribute
s that apply to a given secure object.boolean
supports(java.lang.Class<?> clazz)
Indicates whether theSecurityMetadataSource
implementation is able to provideConfigAttribute
s for the indicated secure object type.
-
-
-
Method Detail
-
getAttributes
java.util.Collection<ConfigAttribute> getAttributes(java.lang.Object object) throws java.lang.IllegalArgumentException
Accesses theConfigAttribute
s 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:
java.lang.IllegalArgumentException
- if the passed object is not of a type supported by theSecurityMetadataSource
implementation
-
getAllConfigAttributes
java.util.Collection<ConfigAttribute> getAllConfigAttributes()
If available, returns all of theConfigAttribute
s defined by the implementing class.This is used by the
AbstractSecurityInterceptor
to perform startup time validation of eachConfigAttribute
configured against it.- Returns:
- the
ConfigAttribute
s ornull
if unsupported
-
supports
boolean supports(java.lang.Class<?> clazz)
Indicates whether theSecurityMetadataSource
implementation is able to provideConfigAttribute
s for the indicated secure object type.- Parameters:
clazz
- the class that is being queried- Returns:
- true if the implementation can process the indicated class
-
-