public class MapBasedMethodSecurityMetadataSource extends AbstractFallbackMethodSecurityMetadataSource implements org.springframework.beans.factory.BeanClassLoaderAware
このクラスは、メソッドセキュリティメタデータの XML ベースの定義のための MethodSecurityMetadataSource の推奨実装です。XML ベースの定義を支援するために、ワイルドカードのサポートが提供されています。
| 修飾子と型 | フィールドと説明 |
|---|---|
protected java.util.Map<org.springframework.security.access.method.MapBasedMethodSecurityMetadataSource.RegisteredMethod,java.util.List<ConfigAttribute>> | methodMapRegisteredMethod から ConfigAttribute リストへのマップ |
logger| コンストラクターと説明 |
|---|
MapBasedMethodSecurityMetadataSource() |
MapBasedMethodSecurityMetadataSource(java.util.Map<java.lang.String,java.util.List<ConfigAttribute>> methodMap) MapBasedMethodSecurityMetadataSource を |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addSecureMethod(java.lang.Class<?> javaType, java.lang.reflect.Method method, java.util.List<ConfigAttribute> attr) たとえば、ポイントカット式を使用してメソッドが一致した場合など、特定のメソッドの構成属性を追加します。 |
void | addSecureMethod(java.lang.Class<?> javaType, java.lang.String mappedName, java.util.List<ConfigAttribute> attr) 安全なメソッドの構成属性を追加します。 |
protected java.util.Collection<ConfigAttribute> | findAttributes(java.lang.Class<?> clazz) 実装はクラスレベルの属性をサポートしていません。 |
protected java.util.Collection<ConfigAttribute> | findAttributes(java.lang.reflect.Method method, java.lang.Class<?> targetClass) メソッド継承ツリーをたどって、適用可能な最も具体的な宣言を見つけます。 |
java.util.Collection<ConfigAttribute> | getAllConfigAttributes() この Bean に対して明示的に定義された構成属性を取得します。 |
int | getMethodMapSize() |
void | setBeanClassLoader(java.lang.ClassLoader beanClassLoader) |
getAttributesgetAttributes, supportsprotected final java.util.Map<org.springframework.security.access.method.MapBasedMethodSecurityMetadataSource.RegisteredMethod,java.util.List<ConfigAttribute>> methodMap
public MapBasedMethodSecurityMetadataSource()
public MapBasedMethodSecurityMetadataSource(java.util.Map<java.lang.String,java.util.List<ConfigAttribute>> methodMap)
methodMap - メソッド名の ConfigAttribute へのマップ。protected java.util.Collection<ConfigAttribute> findAttributes(java.lang.Class<?> clazz)
AbstractFallbackMethodSecurityMetadataSource の findAttributes clazz - 呼び出しのターゲットクラス (非 null)protected java.util.Collection<ConfigAttribute> findAttributes(java.lang.reflect.Method method, java.lang.Class<?> targetClass)
AbstractFallbackMethodSecurityMetadataSource の findAttributes method - 現在の呼び出しのメソッド (非 null)targetClass - 呼び出しのターゲットクラス (null の場合があります)public void addSecureMethod(java.lang.Class<?> javaType,
java.lang.String mappedName,
java.util.List<ConfigAttribute> attr)* で終了または開始できます。javaType - セキュリティ構成属性が適用されるターゲットインターフェースまたはクラス mappedName - javaType が宣言または継承したマッピングされたメソッド名 attr - メソッドに関連する必要な権限 public void addSecureMethod(java.lang.Class<?> javaType,
java.lang.reflect.Method method,
java.util.List<ConfigAttribute> attr) このメソッドは、BeanFactory の初期化中にのみ呼び出す必要があります。
public java.util.Collection<ConfigAttribute> getAllConfigAttributes()
SecurityMetadataSource 内の getAllConfigAttributes public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
org.springframework.beans.factory.BeanClassLoaderAware 内の setBeanClassLoader public int getMethodMapSize()