public class SSLContextParametersSecureProtocolSocketFactory extends Object implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
SecureProtocolSocketFactory implementation to allow configuration
of Commons HTTP SSL/TLS options based on a #JSSEClientParameters
instance or a provided SSLSocketFactory instance.| Modifier and Type | Field and Description |
|---|---|
protected SSLContext |
context |
protected SSLSocketFactory |
factory |
| Constructor and Description |
|---|
SSLContextParametersSecureProtocolSocketFactory(org.apache.camel.util.jsse.SSLContextParameters params)
Creates a new instance using a factory created by the provided client configuration
parameters.
|
SSLContextParametersSecureProtocolSocketFactory(SSLSocketFactory factory)
Creates a new instance using the provided factory.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params) |
protected SSLSocketFactory factory
protected SSLContext context
public SSLContextParametersSecureProtocolSocketFactory(SSLSocketFactory factory)
factory - the factory to usepublic SSLContextParametersSecureProtocolSocketFactory(org.apache.camel.util.jsse.SSLContextParameters params)
params - the configuration parameters to use when creating the socket factorypublic Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params) throws IOException, UnknownHostException, org.apache.commons.httpclient.ConnectTimeoutException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryIOExceptionUnknownHostExceptionorg.apache.commons.httpclient.ConnectTimeoutExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactoryIOExceptionUnknownHostExceptionApache Camel