keycloak
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
org.keycloak.authorization.attribute.Attributes インタフェース
org.keycloak.authorization.attribute.Attributes 連携図
Collaboration graph

クラス

class  Entry
 

公開メンバ関数

Map< String, Collection< String > > toMap ()
 
default boolean exists (String name)
 
default boolean containsValue (String name, String value)
 
default Entry getValue (String name)
 

静的公開メンバ関数

static Attributes from (Map< String, Collection< String >> attributes)
 

詳解

Holds attributes, their values and provides utlity methods to manage them.

In the future, it may be useful to provide different implementations for this interface in order to plug or integrate with different Policy Information Point (PIP).

著者
Pedro Igor

関数詳解

◆ containsValue()

default boolean org.keycloak.authorization.attribute.Attributes.containsValue ( String  name,
String  value 
)
inline

Checks if there is an attribute with the given name and value.

引数
namethe attribute name
valuethe attribute value
戻り値
true if any attribute with name and value exist. Otherwise, returns false.
67  {
68  Collection<String> values = toMap().get(name);
69  return values != null && values.stream().anyMatch(value::equals);
70  }
Map< String, Collection< String > > toMap()

◆ exists()

default boolean org.keycloak.authorization.attribute.Attributes.exists ( String  name)
inline

Checks if there is an attribute with the given name.

引数
namethe attribute name
戻り値
true if any attribute with name exist. Otherwise, returns false.
56  {
57  return toMap().containsKey(name);
58  }
Map< String, Collection< String > > toMap()

◆ from()

static Attributes org.keycloak.authorization.attribute.Attributes.from ( Map< String, Collection< String >>  attributes)
inlinestatic
39  {
40  return () -> attributes;
41  }

◆ getValue()

default Entry org.keycloak.authorization.attribute.Attributes.getValue ( String  name)
inline

Returns a Entry from where values can be obtained and parsed accordingly.

引数
namethe attribute name
戻り値
an Entry holding the values for an attribute
78  {
79  Collection<String> value = toMap().get(name);
80 
81  if (value != null) {
82  return new Entry(name, value);
83  }
84 
85  return null;
86  }
Map< String, Collection< String > > toMap()

◆ toMap()

Map<String, Collection<String> > org.keycloak.authorization.attribute.Attributes.toMap ( )

Converts to a Map.

戻り値

このインタフェース詳解は次のファイルから抽出されました: