インターフェース Attributes2GrantedAuthoritiesMapper

すべての既知の実装クラス:
MapBasedAttributes2GrantedAuthoritiesMapperSimpleAttributes2GrantedAuthoritiesMapper

public interface Attributes2GrantedAuthoritiesMapper
セキュリティ属性(ロールやグループ名など)のリストを Spring Security GrantedAuthority のコレクションにマップできるクラスによって実装されるインターフェース。
導入:
2.0
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    このメソッドの実装は、指定された属性のコレクションを Spring Security GrantedAuthorities のコレクションにマップする必要があります。
  • メソッドの詳細

    • getGrantedAuthorities

      CollectionSE<? extends GrantedAuthority> getGrantedAuthorities(CollectionSE<StringSE> attributes)
      このメソッドの実装は、指定された属性のコレクションを Spring Security GrantedAuthorities のコレクションにマップする必要があります。マッピングプロセスに制限はありません。単一の属性を複数の Spring Security GrantedAuthorities にマッピングできます。すべての属性を単一の Spring Security GrantedAuthority にマッピングできます。一部の属性はマッピングされない場合もあります。
      パラメーター:
      attributes - マップされる属性
      戻り値:
      属性から作成された権限のコレクション