Class DelegatingMethodSecurityMetadataSource
java.lang.Object
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,MethodSecurityMetadataSource,SecurityMetadataSource
public final class DelegatingMethodSecurityMetadataSource
extends AbstractMethodSecurityMetadataSource
Automatically tries a series of method definition sources, relying on the first source
of metadata that provides a non-null/non-empty response. Provides automatic caching of
the retrieved metadata.
-
Field Summary
Fields inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
logger -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingMethodSecurityMetadataSource(List<MethodSecurityMetadataSource> methodSecurityMetadataSources) -
Method Summary
Modifier and TypeMethodDescriptionIf available, returns all of theConfigAttributes defined by the implementing class.getAttributes(Method method, Class<?> targetClass) Methods inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
getAttributes, supports
-
Constructor Details
-
DelegatingMethodSecurityMetadataSource
public DelegatingMethodSecurityMetadataSource(List<MethodSecurityMetadataSource> methodSecurityMetadataSources)
-
-
Method Details
-
getAttributes
-
getAllConfigAttributes
Description copied from interface:SecurityMetadataSourceIf available, returns all of theConfigAttributes defined by the implementing class.This is used by the
AbstractSecurityInterceptorto perform startup time validation of eachConfigAttributeconfigured against it.- Returns:
- the
ConfigAttributes ornullif unsupported
-
getMethodSecurityMetadataSources
-