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

クラス

class  OpenIDConnectServiceConfigurationFetcher
 

公開メンバ関数

 DynamicServerConfigurationService ()
 
 DynamicServerConfigurationService (HttpClient httpClient)
 
Set< String > getWhitelist ()
 
void setWhitelist (Set< String > whitelist)
 
Set< String > getBlacklist ()
 
void setBlacklist (Set< String > blacklist)
 
ServerConfiguration getServerConfiguration (String issuer)
 

非公開変数類

LoadingCache< String, ServerConfigurationservers
 
Set< String > whitelist = new HashSet<>()
 
Set< String > blacklist = new HashSet<>()
 

静的非公開変数類

static final Logger logger = LoggerFactory.getLogger(DynamicServerConfigurationService.class)
 

詳解

Dynamically fetches OpenID Connect server configurations based on the issuer. Caches the server configurations.

著者
jricher

構築子と解体子

◆ DynamicServerConfigurationService() [1/2]

org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.DynamicServerConfigurationService ( )
inline
72  {
73  this(HttpClientBuilder.create().useSystemProperties().build());
74  }

◆ DynamicServerConfigurationService() [2/2]

org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.DynamicServerConfigurationService ( HttpClient  httpClient)
inline
76  {
77  // initialize the cache
78  servers = CacheBuilder.newBuilder().build(new OpenIDConnectServiceConfigurationFetcher(httpClient));
79  }
LoadingCache< String, ServerConfiguration > servers
Definition: DynamicServerConfigurationService.java:67

関数詳解

◆ getBlacklist()

Set<String> org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.getBlacklist ( )
inline
戻り値
the blacklist
98  {
99  return blacklist;
100  }
Set< String > blacklist
Definition: DynamicServerConfigurationService.java:70

◆ getServerConfiguration()

ServerConfiguration org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.getServerConfiguration ( String  issuer)
inline

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

110  {
111  try {
112 
113  if (!whitelist.isEmpty() && !whitelist.contains(issuer)) {
114  throw new AuthenticationServiceException("Whitelist was nonempty, issuer was not in whitelist: " + issuer);
115  }
116 
117  if (blacklist.contains(issuer)) {
118  throw new AuthenticationServiceException("Issuer was in blacklist: " + issuer);
119  }
120 
121  return servers.get(issuer);
122  } catch (UncheckedExecutionException | ExecutionException e) {
123  logger.warn("Couldn't load configuration for " + issuer + ": " + e);
124  return null;
125  }
126 
127  }
LoadingCache< String, ServerConfiguration > servers
Definition: DynamicServerConfigurationService.java:67
Set< String > whitelist
Definition: DynamicServerConfigurationService.java:69
static final Logger logger
Definition: DynamicServerConfigurationService.java:64
Set< String > blacklist
Definition: DynamicServerConfigurationService.java:70

◆ getWhitelist()

Set<String> org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.getWhitelist ( )
inline
戻り値
the whitelist
84  {
85  return whitelist;
86  }
Set< String > whitelist
Definition: DynamicServerConfigurationService.java:69

◆ setBlacklist()

void org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.setBlacklist ( Set< String >  blacklist)
inline
引数
blacklistthe blacklist to set
105  {
106  this.blacklist = blacklist;
107  }
Set< String > blacklist
Definition: DynamicServerConfigurationService.java:70

◆ setWhitelist()

void org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.setWhitelist ( Set< String >  whitelist)
inline
引数
whitelistthe whitelist to set
91  {
92  this.whitelist = whitelist;
93  }
Set< String > whitelist
Definition: DynamicServerConfigurationService.java:69

メンバ詳解

◆ blacklist

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

◆ logger

final Logger org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.logger = LoggerFactory.getLogger(DynamicServerConfigurationService.class)
staticprivate

Logger for this class

◆ servers

LoadingCache<String, ServerConfiguration> org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService.servers
private

◆ whitelist

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

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