Package com.soffid.iam.utils
Class CustomSSLFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- com.soffid.iam.utils.CustomSSLFactory
-
public class CustomSSLFactory extends SocketFactory
-
-
Constructor Summary
Constructors Constructor Description CustomSSLFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
createSocket(String host, int port)
Socket
createSocket(String host, int port, InetAddress localHost, int localPort)
Socket
createSocket(InetAddress host, int port)
Socket
createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
-
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
-
-
-
-
Constructor Detail
-
CustomSSLFactory
public CustomSSLFactory() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
createSocket
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
-