Class SecuredAnnotationSecurityMetadataSource
- All Implemented Interfaces:
- org.springframework.aop.framework.AopInfrastructureBean,- MethodSecurityMetadataSource,- SecurityMetadataSource
Secured annotation.
 
 Can also be used with custom security annotations by injecting an
 AnnotationMetadataExtractor. The annotation type will then be obtained from the
 generic parameter type supplied to this interface
- 
Field SummaryFields inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSourcelogger
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.SecuredAnnotationSecurityMetadataSource(AnnotationMetadataExtractor annotationMetadataExtractor) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected Collection<ConfigAttribute>findAttributes(Class<?> clazz) Deprecated.Obtains the security metadata registered against the specified class.protected Collection<ConfigAttribute>findAttributes(Method method, Class<?> targetClass) Deprecated.Obtains the security metadata applicable to the specified method invocation.Deprecated.If available, returns all of theConfigAttributes defined by the implementing class.Methods inherited from class org.springframework.security.access.method.AbstractFallbackMethodSecurityMetadataSourcegetAttributesMethods inherited from class org.springframework.security.access.method.AbstractMethodSecurityMetadataSourcegetAttributes, supports
- 
Constructor Details- 
SecuredAnnotationSecurityMetadataSourcepublic SecuredAnnotationSecurityMetadataSource()Deprecated.
- 
SecuredAnnotationSecurityMetadataSourcepublic SecuredAnnotationSecurityMetadataSource(AnnotationMetadataExtractor annotationMetadataExtractor) Deprecated.
 
- 
- 
Method Details- 
findAttributesDeprecated.Description copied from class:AbstractFallbackMethodSecurityMetadataSourceObtains the security metadata registered against the specified class.Subclasses should only return metadata expressed at a class level. Subclasses should NOT aggregate metadata for each method registered against a class, as the abstract superclass will separate invoke AbstractFallbackMethodSecurityMetadataSource.findAttributes(Method, Class)for individual methods as appropriate.- Specified by:
- findAttributesin class- AbstractFallbackMethodSecurityMetadataSource
- Parameters:
- clazz- the target class for the invocation (never- null)
- Returns:
- the security metadata (or null if no metadata applies)
 
- 
findAttributesDeprecated.Description copied from class:AbstractFallbackMethodSecurityMetadataSourceObtains the security metadata applicable to the specified method invocation.Note that the Method.getDeclaringClass()may not equal thetargetClass. 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:
- findAttributesin 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)
 
- 
getAllConfigAttributesDeprecated.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
 
 
- 
AuthorizationManagerBeforeMethodInterceptor.secured()