Package com.wavefront.agent
Class SSLSocketFactoryImpl
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- com.wavefront.agent.SSLSocketFactoryImpl
-
public class SSLSocketFactoryImpl extends SSLSocketFactory
Delegated SSLSocketFactory that sets SoTimeout explicitly.- Author:
- Clement Pang ([email protected]).
-
-
Constructor Summary
Constructors Constructor Description SSLSocketFactoryImpl(SSLSocketFactory delegate, int soTimeoutMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
createSocket()
Socket
createSocket(String s, int i)
Socket
createSocket(String s, int i, InetAddress inetAddress, int i1)
Socket
createSocket(InetAddress inetAddress, int i)
Socket
createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1)
Socket
createSocket(Socket socket, String s, int i, boolean b)
String[]
getDefaultCipherSuites()
String[]
getSupportedCipherSuites()
-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
-
-
-
Constructor Detail
-
SSLSocketFactoryImpl
public SSLSocketFactoryImpl(SSLSocketFactory delegate, int soTimeoutMs)
-
-
Method Detail
-
createSocket
public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException
- Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inetAddress, int i) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String s, int i) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String s, int i, InetAddress inetAddress, int i1) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
-