java.lang.Object | |||
↳ | org.springframework.security.access.method.AbstractMethodSecurityMetadataSource | ||
↳ | org.springframework.security.access.method.AbstractFallbackMethodSecurityMetadataSource | ||
↳ | org.springframework.security.access.method.MapBasedMethodSecurityMetadataSource |
Stores a list of ConfigAttributes for a method or class signature.
This class is the preferred implementation of MethodSecurityMetadataSource
for XML-based
definition of method security metadata. To assist in XML-based definition, wildcard support
is provided.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
methodMap | Map from RegisteredMethod to ConfigAttribute list |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the MapBasedMethodSecurityMetadataSource from a
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds configuration attributes for a specific method, for example where the method has been
matched using a pointcut expression.
| |||||||||||
Add configuration attributes for a secure method.
| |||||||||||
Obtains the configuration attributes explicitly defined against this bean.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Implementation does not support class-level attributes.
| |||||||||||
Will walk the method inheritance tree to find the most specific declaration applicable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.access.method.AbstractFallbackMethodSecurityMetadataSource
| |||||||||||
From class
org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.security.access.SecurityMetadataSource
| |||||||||||
From interface
org.springframework.security.access.method.MethodSecurityMetadataSource
|
Map from RegisteredMethod to ConfigAttribute list
Creates the MapBasedMethodSecurityMetadataSource from a
methodMap | map of method names to ConfigAttributes. |
---|
Adds configuration attributes for a specific method, for example where the method has been matched using a pointcut expression. If a match already exists in the map for the method, then the existing match will be retained, so that if this method is called for a more general pointcut it will not override a more specific one which has already been added.
This method should only be called during initialization of the BeanFactory
.
Add configuration attributes for a secure method. Mapped method names can end or start with *
for matching multiple methods.
javaType | target interface or class the security configuration attribute applies to |
---|---|
mappedName | mapped method name, which the javaType has declared or inherited |
attr | required authorities associated with the method |
Obtains the configuration attributes explicitly defined against this bean.
Implementation does not support class-level attributes.
clazz | the target class for the invocation (never null ) |
---|
Will walk the method inheritance tree to find the most specific declaration applicable.
method | the method for the current invocation (never null ) |
---|---|
targetClass | the target class for the invocation (may be null ) |