JwtSubjectIssuersConfig { public static JwtSubjectIssuersConfig fromOAuthConfig(final OAuthConfig config) { final Set<JwtSubjectIssuerConfig> configItems = Stream.concat(config.getOpenIdConnectIssuers().entrySet().stream(), config.getOpenIdConnectIssuersExtension().entrySet().stream()) .map(entry -> new JwtSubjectIssuerConfig(entry.getValue(), entry.getKey())) .collect(Collectors.toSet()); return fromJwtSubjectIssuerConfigs(configItems); } private  JwtSubjectIssuersConfig(final Iterable<JwtSubjectIssuerConfig> configItems); static JwtSubjectIssuersConfig fromJwtSubjectIssuerConfigs(
            final Iterable<JwtSubjectIssuerConfig> configItems); static JwtSubjectIssuersConfig fromOAuthConfig(final OAuthConfig config); Optional<JwtSubjectIssuerConfig> getConfigItem(final String issuer); Collection<JwtSubjectIssuerConfig> getConfigItems(); Collection<JwtSubjectIssuerConfig> getConfigItems(final SubjectIssuer subjectIssuer); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void fromOAuthConfig() { final JwtSubjectIssuerConfig googleItem = new JwtSubjectIssuerConfig( "https: final JwtSubjectIssuerConfig additionalItem = new JwtSubjectIssuerConfig("https: final OAuthConfig oAuthConfig = DefaultOAuthConfig.of(ConfigFactory.load("oauth-test.conf")); final JwtSubjectIssuersConfig jwtSubjectIssuersConfig = JwtSubjectIssuersConfig.fromOAuthConfig(oAuthConfig); assertThat(jwtSubjectIssuersConfig.getConfigItem(googleItem.getIssuer())).contains(googleItem); assertThat(jwtSubjectIssuersConfig.getConfigItem(additionalItem.getIssuer())).contains(additionalItem); }