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

公開メンバ関数

IssuerServiceResponse getIssuer (HttpServletRequest request)
 
String getAccountChooserUrl ()
 
void setAccountChooserUrl (String accountChooserUrl)
 
Set< String > getWhitelist ()
 
void setWhitelist (Set< String > whitelist)
 
Set< String > getBlacklist ()
 
void setBlacklist (Set< String > blacklist)
 
void afterPropertiesSet ()
 

非公開変数類

String accountChooserUrl
 
Set< String > whitelist = new HashSet<>()
 
Set< String > blacklist = new HashSet<>()
 

詳解

Determines the issuer using an account chooser or other third-party-initiated login

著者
jricher

関数詳解

◆ afterPropertiesSet()

void org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.afterPropertiesSet ( )
inline
132  {
133  if (Strings.isNullOrEmpty(this.accountChooserUrl)) {
134  throw new IllegalArgumentException("Account Chooser URL cannot be null or empty");
135  }
136 
137  }

◆ getAccountChooserUrl()

String org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.getAccountChooserUrl ( )
inline
戻り値
the accountChooserUrl
92  {
93  return accountChooserUrl;
94  }
String accountChooserUrl
Definition: ThirdPartyIssuerService.java:46

◆ getBlacklist()

Set<String> org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.getBlacklist ( )
inline
戻り値
the blacklist
120  {
121  return blacklist;
122  }
Set< String > blacklist
Definition: ThirdPartyIssuerService.java:49

◆ getIssuer()

IssuerServiceResponse org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.getIssuer ( HttpServletRequest  request)
inline

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

55  {
56 
57  // if the issuer is passed in, return that
58  String iss = request.getParameter("iss");
59  if (!Strings.isNullOrEmpty(iss)) {
60  if (!whitelist.isEmpty() && !whitelist.contains(iss)) {
61  throw new AuthenticationServiceException("Whitelist was nonempty, issuer was not in whitelist: " + iss);
62  }
63 
64  if (blacklist.contains(iss)) {
65  throw new AuthenticationServiceException("Issuer was in blacklist: " + iss);
66  }
67 
68  return new IssuerServiceResponse(iss, request.getParameter("login_hint"), request.getParameter("target_link_uri"));
69  } else {
70 
71  try {
72  // otherwise, need to forward to the account chooser
73  String redirectUri = request.getRequestURL().toString();
74  URIBuilder builder = new URIBuilder(accountChooserUrl);
75 
76  builder.addParameter("redirect_uri", redirectUri);
77 
78  return new IssuerServiceResponse(builder.build().toString());
79 
80  } catch (URISyntaxException e) {
81  throw new AuthenticationServiceException("Account Chooser URL is not valid", e);
82  }
83 
84 
85  }
86 
87  }
Set< String > whitelist
Definition: ThirdPartyIssuerService.java:48
Set< String > blacklist
Definition: ThirdPartyIssuerService.java:49
String accountChooserUrl
Definition: ThirdPartyIssuerService.java:46

◆ getWhitelist()

Set<String> org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.getWhitelist ( )
inline
戻り値
the whitelist
106  {
107  return whitelist;
108  }
Set< String > whitelist
Definition: ThirdPartyIssuerService.java:48

◆ setAccountChooserUrl()

void org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.setAccountChooserUrl ( String  accountChooserUrl)
inline
引数
accountChooserUrlthe accountChooserUrl to set
99  {
101  }
String accountChooserUrl
Definition: ThirdPartyIssuerService.java:46

◆ setBlacklist()

void org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.setBlacklist ( Set< String >  blacklist)
inline
引数
blacklistthe blacklist to set
127  {
128  this.blacklist = blacklist;
129  }
Set< String > blacklist
Definition: ThirdPartyIssuerService.java:49

◆ setWhitelist()

void org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.setWhitelist ( Set< String >  whitelist)
inline
引数
whitelistthe whitelist to set
113  {
114  this.whitelist = whitelist;
115  }
Set< String > whitelist
Definition: ThirdPartyIssuerService.java:48

メンバ詳解

◆ accountChooserUrl

String org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.accountChooserUrl
private

◆ blacklist

Set<String> org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.blacklist = new HashSet<>()
private

◆ whitelist

Set<String> org.mitre.openid.connect.client.service.impl.ThirdPartyIssuerService.whitelist = new HashSet<>()
private

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