Class SecuredAnnotationSecurityMetadataSource

    • Constructor Detail

      • SecuredAnnotationSecurityMetadataSource

        public SecuredAnnotationSecurityMetadataSource()
        Deprecated.
      • SecuredAnnotationSecurityMetadataSource

        public SecuredAnnotationSecurityMetadataSource​(AnnotationMetadataExtractor annotationMetadataExtractor)
        Deprecated.
    • Method Detail

      • findAttributes

        protected java.util.Collection<ConfigAttribute> findAttributes​(java.lang.reflect.Method method,
                                                                       java.lang.Class<?> targetClass)
        Deprecated.
        Description copied from class: AbstractFallbackMethodSecurityMetadataSource
        Obtains the security metadata applicable to the specified method invocation.

        Note that the Method.getDeclaringClass() may not equal the targetClass. Both parameters are provided to assist subclasses which may wish to provide advanced capabilities related to method metadata being "registered" against a method even if the target class does not declare the method (i.e. the subclass may only inherit the method).

        Specified by:
        findAttributes in class AbstractFallbackMethodSecurityMetadataSource
        Parameters:
        method - the method for the current invocation (never null)
        targetClass - the target class for the invocation (may be null)
        Returns:
        the security metadata (or null if no metadata applies)
      • 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