Class DelegatingMethodSecurityMetadataSource

  • All Implemented Interfaces:
    org.springframework.aop.framework.AopInfrastructureBean, MethodSecurityMetadataSource, SecurityMetadataSource

    @Deprecated
    public final class DelegatingMethodSecurityMetadataSource
    extends AbstractMethodSecurityMetadataSource
    Deprecated.
    Use the use-authorization-manager attribute for <method-security> and <intercept-methods> instead or use annotation-based or AuthorizationManager-based authorization
    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.
    • Constructor Detail

      • DelegatingMethodSecurityMetadataSource

        public DelegatingMethodSecurityMetadataSource​(java.util.List<MethodSecurityMetadataSource> methodSecurityMetadataSources)
        Deprecated.
    • Method Detail

      • getAttributes

        public java.util.Collection<ConfigAttribute> getAttributes​(java.lang.reflect.Method method,
                                                                   java.lang.Class<?> targetClass)
        Deprecated.
      • getAllConfigAttributes

        public java.util.Collection<ConfigAttribute> getAllConfigAttributes()
        Deprecated.
        Description copied from interface: SecurityMetadataSource
        If available, returns all of the ConfigAttributes defined by the implementing class.

        This is used by the AbstractSecurityInterceptor to perform startup time validation of each ConfigAttribute configured against it.

        Returns:
        the ConfigAttributes or null if unsupported