Class SSLClientSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
ecmwf.common.rmi.SSLClientSocketFactory
A factory for creating SSLClientSocket objects.
-
Constructor Summary
ConstructorsConstructorDescriptionSSLClientSocketFactory
(SSLSocketFactory factory, SocketConfig config) Instantiates a new SSL client socket factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(String host, int port) Creates a new SSLClientSocket object.createSocket
(String host, int port, InetAddress localHost, int localPort) Creates a new SSLClientSocket object.createSocket
(InetAddress host, int port) Creates a new SSLClientSocket object.createSocket
(InetAddress host, int port, InetAddress localHost, int localPort) Creates a new SSLClientSocket object.createSocket
(Socket socket, String host, int port, boolean autoClose) Creates a new SSLClientSocket object.String[]
Gets the default cipher suites.String[]
Gets the supported cipher suites.void
Update statistics.Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
Methods inherited from class javax.net.SocketFactory
createSocket
-
Constructor Details
-
SSLClientSocketFactory
Instantiates a new SSL client socket factory.- Parameters:
factory
- the factoryconfig
- the config
-
-
Method Details
-
updateStatistics
Update statistics.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getDefaultCipherSuites
Gets the default cipher suites.- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
Gets the supported cipher suites.- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
createSocket
Creates a new SSLClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
Creates a new SSLClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress localHost, int localPort) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-