use of org.apereo.cas.authentication.DefaultCasSslContext in project cas by apereo.
the class TrustedProxyAuthenticationTrustStoreSslSocketFactoryTests method prepareHttpClient.
@Before
public void prepareHttpClient() throws Exception {
final SimpleHttpClientFactoryBean clientFactory = new SimpleHttpClientFactoryBean();
clientFactory.setSslSocketFactory(new SSLConnectionSocketFactory(new DefaultCasSslContext(TRUST_STORE, TRUST_STORE_PSW, KeyStore.getDefaultType()).getSslContext()));
this.client = clientFactory.getObject();
}
Aggregations