public abstract class

AbstractMethodSecurityMetadataSource

extends Object
implements MethodSecurityMetadataSource
java.lang.Object
   ↳ org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract implementation of MethodSecurityMetadataSource which resolves the secured object type to a MethodInvocation.

Summary

Fields
protected final Log logger
Public Constructors
AbstractMethodSecurityMetadataSource()
Public Methods
final Collection<ConfigAttribute> getAttributes(Object object)
Accesses the ConfigAttributes that apply to a given secure object.
final boolean supports(Class<?> clazz)
Indicates whether the SecurityMetadataSource implementation is able to provide ConfigAttributes for the indicated secure object type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.access.SecurityMetadataSource
From interface org.springframework.security.access.method.MethodSecurityMetadataSource

Fields

protected final Log logger

Public Constructors

public AbstractMethodSecurityMetadataSource ()

Public Methods

public final Collection<ConfigAttribute> getAttributes (Object object)

Accesses the ConfigAttributes 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.

public final boolean supports (Class<?> clazz)

Indicates whether the SecurityMetadataSource implementation is able to provide ConfigAttributes for the indicated secure object type.

Parameters
clazz the class that is being queried
Returns
  • true if the implementation can process the indicated class