javax.net.ssl.SSLContextSpi Java Examples

The following examples show how to use javax.net.ssl.SSLContextSpi. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FeignHttpClientConfigurationTests.java    From spring-cloud-openfeign with Apache License 2.0 5 votes vote down vote up
private X509TrustManager getX509TrustManager(
		Lookup<ConnectionSocketFactory> socketFactoryRegistry) {
	ConnectionSocketFactory connectionSocketFactory = (ConnectionSocketFactory) socketFactoryRegistry
			.lookup("https");
	SSLSocketFactory sslSocketFactory = (SSLSocketFactory) this
			.getField(connectionSocketFactory, "socketfactory");
	SSLContextSpi sslContext = (SSLContextSpi) this.getField(sslSocketFactory,
			"context");
	return (X509TrustManager) this.getField(sslContext, "trustManager");
}
 
Example #2
Source File: DefaultApacheHttpClientConnectionManagerFactoryTests.java    From spring-cloud-commons with Apache License 2.0 5 votes vote down vote up
private X509TrustManager getX509TrustManager(
		Lookup<ConnectionSocketFactory> socketFactoryRegistry) {
	ConnectionSocketFactory connectionSocketFactory = socketFactoryRegistry
			.lookup("https");
	SSLSocketFactory sslSocketFactory = getField(connectionSocketFactory,
			"socketfactory");
	SSLContextSpi sslContext = getField(sslSocketFactory, "context");
	return getField(sslContext, "trustManager");
}
 
Example #3
Source File: Target_javax_net_ssl_SSLContext.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Alias
protected Target_javax_net_ssl_SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) {
}