org.springframework.security.access.method
Class AbstractMethodSecurityMetadataSource
java.lang.Object
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
- All Implemented Interfaces:
- AopInfrastructureBean, MethodSecurityMetadataSource, SecurityMetadataSource
- Direct Known Subclasses:
- AbstractFallbackMethodSecurityMetadataSource, DelegatingMethodSecurityMetadataSource, PrePostAnnotationSecurityMetadataSource
public abstract class AbstractMethodSecurityMetadataSource
- extends Object
- implements MethodSecurityMetadataSource
Abstract implementation of MethodSecurityMetadataSource which resolves the secured object type to
either a MethodInvocation or a JoinPoint.
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
AbstractMethodSecurityMetadataSource
public AbstractMethodSecurityMetadataSource()
getAttributes
public final Collection<ConfigAttribute> getAttributes(Object object)
- Description copied from interface:
SecurityMetadataSource
- Accesses the
ConfigAttribute
s that apply to a given secure object.
Returns null
if no attributes apply.
- Specified by:
getAttributes
in interface SecurityMetadataSource
- Parameters:
object
- the object being secured
- Returns:
- the attributes that apply to the passed in secured object or null if there are no applicable attributes.
supports
public final boolean supports(Class<?> clazz)
- Description copied from interface:
SecurityMetadataSource
- Indicates whether the
SecurityMetadataSource
implementation is able to provide
ConfigAttribute
s for the indicated secure object type.
- Specified by:
supports
in interface SecurityMetadataSource
- Parameters:
clazz
- the class that is being queried
- Returns:
- true if the implementation can process the indicated class