クラス MapBasedAttributes2GrantedAuthoritiesMapper
java.lang.ObjectSE
org.springframework.security.core.authority.mapping.MapBasedAttributes2GrantedAuthoritiesMapper
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
、Attributes2GrantedAuthoritiesMapper
、MappableAttributesRetriever
public class MapBasedAttributes2GrantedAuthoritiesMapper
extends ObjectSE
implements Attributes2GrantedAuthoritiesMapper, MappableAttributesRetriever, org.springframework.beans.factory.InitializingBean
このクラスは、提供されたマップに基づいて Attributes2GrantedAuthoritiesMapper および MappableAttributesRetriever インターフェースを実装します。1 対 1 と 1 対多の両方のマッピングをサポートしています。マップするために許可された権限は、文字列または GrantedAuthority オブジェクトとして提供できます。
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
getGrantedAuthorities
(CollectionSE<StringSE> attributes) 指定された属性の配列を Spring Security GrantedAuthorities にマップします。このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。void
setAttributes2grantedAuthoritiesMap
(MapSE<?, ?> attributes2grantedAuthoritiesMap) void
setStringSeparator
(StringSE stringSeparator)
コンストラクターの詳細
MapBasedAttributes2GrantedAuthoritiesMapper
public MapBasedAttributes2GrantedAuthoritiesMapper()
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
getGrantedAuthorities
指定された属性の配列を Spring Security GrantedAuthorities にマップします。- 次で指定:
- インターフェース
Attributes2GrantedAuthoritiesMapper
のgetGrantedAuthorities
- パラメーター:
attributes
- マップされる属性- 戻り値:
- 属性から作成された権限のコレクション
getAttributes2grantedAuthoritiesMap
- 戻り値:
- attributes2grantedAuthoritiesMap を返します。
setAttributes2grantedAuthoritiesMap
- パラメーター:
attributes2grantedAuthoritiesMap
- 設定する attributes2grantedAuthoritiesMap。
getMappableAttributes
インターフェースからコピーされた説明:MappableAttributesRetriever
このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。- 次で指定:
- インターフェース
MappableAttributesRetriever
のgetMappableAttributes
- 戻り値:
- すべてのマッピング可能なロールのセット
- 関連事項:
getStringSeparator
- 戻り値:
- stringSeparator を返します。
setStringSeparator
- パラメーター:
stringSeparator
- 設定する stringSeparator。