mitreid-connect
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService クラス
org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService の継承関係図
Inheritance graph
org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService 連携図
Collaboration graph

公開メンバ関数

 DefaultScopeClaimTranslationService ()
 
Set< String > getClaimsForScope (String scope)
 
Set< String > getClaimsForScopeSet (Set< String > scopes)
 

非公開変数類

SetMultimap< String, String > scopesToClaims = HashMultimap.create()
 

詳解

Service to map scopes to claims, and claims to Java field names

著者
Amanda Anganes

構築子と解体子

◆ DefaultScopeClaimTranslationService()

org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService.DefaultScopeClaimTranslationService ( )
inline

Default constructor; initializes scopesToClaims map

43  {
44  scopesToClaims.put("openid", "sub");
45 
46  scopesToClaims.put("profile", "name");
47  scopesToClaims.put("profile", "preferred_username");
48  scopesToClaims.put("profile", "given_name");
49  scopesToClaims.put("profile", "family_name");
50  scopesToClaims.put("profile", "middle_name");
51  scopesToClaims.put("profile", "nickname");
52  scopesToClaims.put("profile", "profile");
53  scopesToClaims.put("profile", "picture");
54  scopesToClaims.put("profile", "website");
55  scopesToClaims.put("profile", "gender");
56  scopesToClaims.put("profile", "zoneinfo");
57  scopesToClaims.put("profile", "locale");
58  scopesToClaims.put("profile", "updated_at");
59  scopesToClaims.put("profile", "birthdate");
60 
61  scopesToClaims.put("email", "email");
62  scopesToClaims.put("email", "email_verified");
63 
64  scopesToClaims.put("phone", "phone_number");
65  scopesToClaims.put("phone", "phone_number_verified");
66 
67  scopesToClaims.put("address", "address");
68  }
SetMultimap< String, String > scopesToClaims
Definition: DefaultScopeClaimTranslationService.java:38

関数詳解

◆ getClaimsForScope()

Set<String> org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService.getClaimsForScope ( String  scope)
inline

org.mitre.openid.connect.service.ScopeClaimTranslationServiceを実装しています。

74  {
75  if (scopesToClaims.containsKey(scope)) {
76  return scopesToClaims.get(scope);
77  } else {
78  return new HashSet<>();
79  }
80  }
SetMultimap< String, String > scopesToClaims
Definition: DefaultScopeClaimTranslationService.java:38

◆ getClaimsForScopeSet()

Set<String> org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService.getClaimsForScopeSet ( Set< String >  scopes)
inline

org.mitre.openid.connect.service.ScopeClaimTranslationServiceを実装しています。

86  {
87  Set<String> result = new HashSet<>();
88  for (String scope : scopes) {
89  result.addAll(getClaimsForScope(scope));
90  }
91  return result;
92  }
Set< String > getClaimsForScope(String scope)
Definition: DefaultScopeClaimTranslationService.java:74

メンバ詳解

◆ scopesToClaims

SetMultimap<String, String> org.mitre.openid.connect.service.impl.DefaultScopeClaimTranslationService.scopesToClaims = HashMultimap.create()
private

このクラス詳解は次のファイルから抽出されました: