diff --git a/src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/HTTPOpenIdAuthenticator.java b/src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/HTTPOpenIdAuthenticator.java index 49bad8de85..294c9bbbea 100644 --- a/src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/HTTPOpenIdAuthenticator.java +++ b/src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/HTTPOpenIdAuthenticator.java @@ -96,22 +96,6 @@ public Optional reRequestAuthentication(SecurityRequest reques return Optional.empty(); } - // Public for testing - public CloseableHttpClient createHttpClient() { - HttpClientBuilder builder; - builder = HttpClients.custom(); - builder.useSystemProperties(); - if (sslConfig != null) { - final HttpClientConnectionManager cm = PoolingHttpClientConnectionManagerBuilder.create() - .setSSLSocketFactory(sslConfig.toSSLConnectionSocketFactory()) - .build(); - - builder.setConnectionManager(cm); - } - - return builder.build(); - } - /** * This method performs the logic required for making use of the userinfo_endpoint OIDC feature. * Per the spec: https://openid.net/specs/openid-connect-core-1_0.html#UserInfo there are 10 verification steps we must perform