public interface SecurityMetadataSource extends AopInfrastructureBean
ConfigAttribute
s that
applies to a given secure object invocation.Modifier and Type | Method and Description |
---|---|
Collection<ConfigAttribute> |
getAllConfigAttributes()
If available, returns all of the
ConfigAttribute s defined by the
implementing class. |
Collection<ConfigAttribute> |
getAttributes(Object object)
Accesses the
ConfigAttribute s that apply to a given secure object. |
boolean |
supports(Class<?> clazz)
Indicates whether the
SecurityMetadataSource implementation is able to
provide ConfigAttribute s for the indicated secure object type. |
Collection<ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException
ConfigAttribute
s that apply to a given secure object.object
- the object being securedIllegalArgumentException
- if the passed object is not of a type supported by
the SecurityMetadataSource
implementationCollection<ConfigAttribute> getAllConfigAttributes()
ConfigAttribute
s defined by the
implementing class.
This is used by the AbstractSecurityInterceptor
to perform startup time
validation of each ConfigAttribute
configured against it.
ConfigAttribute
s or null
if unsupportedboolean supports(Class<?> clazz)
SecurityMetadataSource
implementation is able to
provide ConfigAttribute
s for the indicated secure object type.clazz
- the class that is being queried