Class AbstractMethodSecurityMetadataSource
java.lang.Object
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
- All Implemented Interfaces:
org.springframework.aop.framework.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 a MethodInvocation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<ConfigAttribute>
getAttributes
(Object object) Accesses theConfigAttribute
s that apply to a given secure object.final boolean
Indicates whether theSecurityMetadataSource
implementation is able to provideConfigAttribute
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
Methods inherited from interface org.springframework.security.access.method.MethodSecurityMetadataSource
getAttributes
Methods inherited from interface org.springframework.security.access.SecurityMetadataSource
getAllConfigAttributes
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
AbstractMethodSecurityMetadataSource
public AbstractMethodSecurityMetadataSource()
-
-
Method Details
-
getAttributes
Description copied from interface:SecurityMetadataSource
Accesses theConfigAttribute
s that apply to a given secure object.- Specified by:
getAttributes
in interfaceSecurityMetadataSource
- 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.
-
supports
Description copied from interface:SecurityMetadataSource
Indicates whether theSecurityMetadataSource
implementation is able to provideConfigAttribute
s for the indicated secure object type.- Specified by:
supports
in interfaceSecurityMetadataSource
- Parameters:
clazz
- the class that is being queried- Returns:
- true if the implementation can process the indicated class
-