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

公開メンバ関数

 JWKSetEncryptorFetcher (HttpClient httpClient)
 
JWTEncryptionAndDecryptionService load (String key) throws Exception
 

非公開変数類

HttpComponentsClientHttpRequestFactory httpFactory
 
RestTemplate restTemplate
 

詳解

著者
jricher

構築子と解体子

◆ JWKSetEncryptorFetcher()

org.mitre.jwt.signer.service.impl.JWKSetCacheService.JWKSetEncryptorFetcher.JWKSetEncryptorFetcher ( HttpClient  httpClient)
inline
141  {
142  this.httpFactory = new HttpComponentsClientHttpRequestFactory(httpClient);
143  this.restTemplate = new RestTemplate(httpFactory);
144  }
RestTemplate restTemplate
Definition: JWKSetCacheService.java:139
HttpComponentsClientHttpRequestFactory httpFactory
Definition: JWKSetCacheService.java:138

関数詳解

◆ load()

JWTEncryptionAndDecryptionService org.mitre.jwt.signer.service.impl.JWKSetCacheService.JWKSetEncryptorFetcher.load ( String  key) throws Exception
inline
150  {
151  try {
152  String jsonString = restTemplate.getForObject(key, String.class);
153  JWKSet jwkSet = JWKSet.parse(jsonString);
154 
155  JWKSetKeyStore keyStore = new JWKSetKeyStore(jwkSet);
156 
157  JWTEncryptionAndDecryptionService service = new DefaultJWTEncryptionAndDecryptionService(keyStore);
158 
159  return service;
160  } catch (JsonParseException | RestClientException e) {
161  throw new IllegalArgumentException("Unable to load JWK Set");
162  }
163  }
RestTemplate restTemplate
Definition: JWKSetCacheService.java:139

メンバ詳解

◆ httpFactory

HttpComponentsClientHttpRequestFactory org.mitre.jwt.signer.service.impl.JWKSetCacheService.JWKSetEncryptorFetcher.httpFactory
private

◆ restTemplate

RestTemplate org.mitre.jwt.signer.service.impl.JWKSetCacheService.JWKSetEncryptorFetcher.restTemplate
private

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