ArtifactResolutionProfileImpl extends ArtifactResolutionProfileBase { protected boolean isHostnameVerificationSupported() { try { TLSProtocolSocketFactory.class.getConstructor(javax.net.ssl.X509KeyManager.class, javax.net.ssl.X509TrustManager.class, javax.net.ssl.HostnameVerifier.class); return true; } catch (NoSuchMethodException e) { log.warn("HostnameVerification is not supported, update your OpenSAML libraries"); return false; } } ArtifactResolutionProfileImpl(HttpClient httpClient);   }
@Test public void testHostnameVerificationSupported() { HttpClient client = new HttpClient(); ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(client); assertTrue(artifactResolutionProfile.isHostnameVerificationSupported()); }