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.voidUpdate statistics.Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefaultMethods 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:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
Gets the supported cipher suites.- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createSocket
Creates a new SSLClientSocket object.- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
Creates a new SSLClientSocket object.- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress localHost, int localPort) throws IOException Creates a new SSLClientSocket object.- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-