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

クラス

class  ClientLogoFetcher
 

公開メンバ関数

 InMemoryClientLogoLoadingService ()
 
 InMemoryClientLogoLoadingService (HttpClient httpClient)
 
CachedImage getLogo (ClientDetailsEntity client)
 

非公開変数類

LoadingCache< ClientDetailsEntity, CachedImagecache
 

詳解

著者
jricher

構築子と解体子

◆ InMemoryClientLogoLoadingService() [1/2]

org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.InMemoryClientLogoLoadingService ( )
inline
49  {
50  this(HttpClientBuilder.create().useSystemProperties().build());
51  }

◆ InMemoryClientLogoLoadingService() [2/2]

org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.InMemoryClientLogoLoadingService ( HttpClient  httpClient)
inline
56  {
57 
58  cache = CacheBuilder.newBuilder()
59  .maximumSize(100)
60  .expireAfterAccess(14, TimeUnit.DAYS)
61  .build(new ClientLogoFetcher(httpClient));
62 
63  }
LoadingCache< ClientDetailsEntity, CachedImage > cache
Definition: InMemoryClientLogoLoadingService.java:47

関数詳解

◆ getLogo()

CachedImage org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.getLogo ( ClientDetailsEntity  client)
inline

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

70  {
71  try {
72  if (client != null && !Strings.isNullOrEmpty(client.getLogoUri())) {
73  return cache.get(client);
74  } else {
75  return null;
76  }
77  } catch (UncheckedExecutionException | ExecutionException e) {
78  return null;
79  }
80  }
LoadingCache< ClientDetailsEntity, CachedImage > cache
Definition: InMemoryClientLogoLoadingService.java:47

メンバ詳解

◆ cache

LoadingCache<ClientDetailsEntity, CachedImage> org.mitre.openid.connect.service.impl.InMemoryClientLogoLoadingService.cache
private

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