|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.intercept.method.AbstractFallbackMethodDefinitionSource org.springframework.security.annotation.SecuredMethodDefinitionSource
public class SecuredMethodDefinitionSource
Sources method security metadata from Spring Security's Secured
annotation.
Constructor Summary | |
---|---|
SecuredMethodDefinitionSource()
|
Method Summary | |
---|---|
protected ConfigAttributeDefinition |
findAttributes(Class clazz)
Obtains the security metadata registered against the specified class. |
protected ConfigAttributeDefinition |
findAttributes(Method method,
Class targetClass)
Obtains the security metadata applicable to the specified method invocation. |
Collection |
getConfigAttributeDefinitions()
If available, returns all of the ConfigAttributeDefinition s defined by the implementing class. |
Methods inherited from class org.springframework.security.intercept.method.AbstractFallbackMethodDefinitionSource |
---|
getAttributes, getAttributes, supports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecuredMethodDefinitionSource()
Method Detail |
---|
protected ConfigAttributeDefinition findAttributes(Class clazz)
AbstractFallbackMethodDefinitionSource
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 AbstractFallbackMethodDefinitionSource.findAttributes(Method, Class)
for individual methods as
appropriate.
findAttributes
in class AbstractFallbackMethodDefinitionSource
clazz
- the target class for the invocation (never null
)
protected ConfigAttributeDefinition findAttributes(Method method, Class targetClass)
AbstractFallbackMethodDefinitionSource
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).
findAttributes
in class AbstractFallbackMethodDefinitionSource
method
- the method for the current invocation (never null
)targetClass
- the target class for the invocation (may be null
)
public Collection getConfigAttributeDefinitions()
ObjectDefinitionSource
ConfigAttributeDefinition
s defined by the implementing class.
This is used by the AbstractSecurityInterceptor
to perform startup time validation of each
ConfigAttribute
configured against it.
ConfigAttributeDefinition
s or null
if unsupported
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |