use of org.apereo.cas.util.http.HttpClient in project cas by apereo.
the class FileTrustStoreSslSocketFactoryTests method verifyTrustStoreLoadingSuccessfullyWihInsecureEndpoint.
@Test
public void verifyTrustStoreLoadingSuccessfullyWihInsecureEndpoint() {
final SimpleHttpClientFactoryBean clientFactory = new SimpleHttpClientFactoryBean();
clientFactory.setSslSocketFactory(sslFactory());
final HttpClient client = clientFactory.getObject();
assertTrue(client.isValidEndPoint("http://wikipedia.org"));
}
use of org.apereo.cas.util.http.HttpClient in project cas by apereo.
the class FileTrustStoreSslSocketFactoryTests method verifyTrustStoreLoadingSuccessfullyForValidEndpointWithNoCert.
@Test
public void verifyTrustStoreLoadingSuccessfullyForValidEndpointWithNoCert() {
final SimpleHttpClientFactoryBean clientFactory = new SimpleHttpClientFactoryBean();
clientFactory.setSslSocketFactory(sslFactory());
final HttpClient client = clientFactory.getObject();
assertTrue(client.isValidEndPoint("https://www.google.com"));
}
Aggregations