Package com.microstrategy.utils.ssl
Class SSLSocketFactoryEx
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- com.microstrategy.utils.ssl.SSLSocketFactoryEx
-
-
Constructor Summary
Constructors Constructor Description SSLSocketFactoryEx()SSLSocketFactoryEx(javax.net.ssl.SSLContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.SocketcreateSocket()createSocketis the default createSocket method that takes no parameters.java.net.SocketcreateSocket(java.lang.String host, int port)java.net.SocketcreateSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)java.net.SocketcreateSocket(java.net.InetAddress host, int port)java.net.SocketcreateSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)java.net.SocketcreateSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)java.lang.String[]GetCipherList()java.lang.String[]getDefaultCipherSuites()java.lang.String[]getSupportedCipherSuites()voidsetSSLContext(javax.net.ssl.SSLContext ctx)
-
-
-
Constructor Detail
-
SSLSocketFactoryEx
public SSLSocketFactoryEx() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementException
-
SSLSocketFactoryEx
public SSLSocketFactoryEx(javax.net.ssl.SSLContext ctx) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementException
-
-
Method Detail
-
setSSLContext
public void setSSLContext(javax.net.ssl.SSLContext ctx)
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
createSocket
public java.net.Socket createSocket() throws java.io.IOExceptioncreateSocketis the default createSocket method that takes no parameters. The intent is that theSocket is created but not connected. You then must callconnecton theSocket.
This allows theconnectmethod that takes a timeout to be used. Otherwise a hanging IServer would cause the connection attempt to hang ... forever.- Overrides:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException- Specified by:
createSocketin classjavax.net.ssl.SSLSocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOExceptionjava.net.UnknownHostException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort) throws java.io.IOException, java.net.UnknownHostException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOExceptionjava.net.UnknownHostException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
GetCipherList
public java.lang.String[] GetCipherList()
- Returns:
- array containing the preferred ciphers that are available
-
-