クラス MapBasedAttributes2GrantedAuthoritiesMapper

java.lang.ObjectSE
org.springframework.security.core.authority.mapping.MapBasedAttributes2GrantedAuthoritiesMapper
実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanAttributes2GrantedAuthoritiesMapperMappableAttributesRetriever

public class MapBasedAttributes2GrantedAuthoritiesMapper extends ObjectSE implements Attributes2GrantedAuthoritiesMapper, MappableAttributesRetriever, org.springframework.beans.factory.InitializingBean
このクラスは、提供されたマップに基づいて Attributes2GrantedAuthoritiesMapper および MappableAttributesRetriever インターフェースを実装します。1 対 1 と 1 対多の両方のマッピングをサポートしています。マップするために許可された権限は、文字列または GrantedAuthority オブジェクトとして提供できます。
  • コンストラクターの詳細

    • MapBasedAttributes2GrantedAuthoritiesMapper

      public MapBasedAttributes2GrantedAuthoritiesMapper()
  • メソッドの詳細

    • afterPropertiesSet

      public void afterPropertiesSet()
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
    • getGrantedAuthorities

      public ListSE<GrantedAuthority> getGrantedAuthorities(CollectionSE<StringSE> attributes)
      指定された属性の配列を Spring Security GrantedAuthorities にマップします。
      次で指定:
      インターフェース Attributes2GrantedAuthoritiesMappergetGrantedAuthorities 
      パラメーター:
      attributes - マップされる属性
      戻り値:
      属性から作成された権限のコレクション
    • getAttributes2grantedAuthoritiesMap

      public MapSE<StringSE,CollectionSE<GrantedAuthority>> getAttributes2grantedAuthoritiesMap()
      戻り値:
      attributes2grantedAuthoritiesMap を返します。
    • setAttributes2grantedAuthoritiesMap

      public void setAttributes2grantedAuthoritiesMap(MapSE<?,?> attributes2grantedAuthoritiesMap)
      パラメーター:
      attributes2grantedAuthoritiesMap - 設定する attributes2grantedAuthoritiesMap。
    • getMappableAttributes

      public SetSE<StringSE> getMappableAttributes()
      インターフェースからコピーされた説明: MappableAttributesRetriever
      このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。
      次で指定:
      インターフェース MappableAttributesRetrievergetMappableAttributes 
      戻り値:
      すべてのマッピング可能なロールのセット
      関連事項:
    • getStringSeparator

      public StringSE getStringSeparator()
      戻り値:
      stringSeparator を返します。
    • setStringSeparator

      public void setStringSeparator(StringSE stringSeparator)
      パラメーター:
      stringSeparator - 設定する stringSeparator。