クラス WebXmlMappableAttributesRetriever
- java.lang.Object
-
- org.springframework.security.web.authentication.preauth.j2ee.WebXmlMappableAttributesRetriever
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.ResourceLoaderAware
、MappableAttributesRetriever
public class WebXmlMappableAttributesRetriever extends java.lang.Object implements org.springframework.context.ResourceLoaderAware, MappableAttributesRetriever, org.springframework.beans.factory.InitializingBean
この MappableAttributesRetriever 実装は、定義された J2EE ロールのリストを web.xml ファイルから読み取り、{getMappableAttributes()
から返します。- 導入:
- 2.0
フィールドサマリー
フィールド 修飾子と型 フィールド 説明 protected org.apache.commons.logging.Log
logger
コンストラクターのサマリー
コンストラクター コンストラクター 説明 WebXmlMappableAttributesRetriever()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 void
afterPropertiesSet()
構成された ResourceLoader を使用して web.xml ファイルをロードし、それらから mappableAttributes のセットとして使用して、ロール名要素を解析します。java.util.Set<java.lang.String>
getMappableAttributes()
このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。void
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
メソッドの詳細
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- 次で指定:
- インターフェース
org.springframework.context.ResourceLoaderAware
のsetResourceLoader
getMappableAttributes
public java.util.Set<java.lang.String> getMappableAttributes()
インターフェースからコピーされた説明:MappableAttributesRetriever
このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。- 次で指定:
- インターフェース
MappableAttributesRetriever
のgetMappableAttributes
- 戻り値:
- すべてのマッピング可能なロールのセット
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
構成された ResourceLoader を使用して web.xml ファイルをロードし、それらから mappableAttributes のセットとして使用して、ロール名要素を解析します。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
- 例外:
java.lang.Exception