Package com.axway.ats.action.mail.model
Class BasicSslSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- com.axway.ats.action.mail.model.BasicSslSocketFactory
-
public class BasicSslSocketFactory extends SSLSocketFactory
A replacement for the standard SSLSocketFactory which allows specifying which TrustManager to use. Our implementation uses the BasicTrustManager. The code is taken from the SSLNOTES.txt in the JavaMail 1.4.1 distribution.
-
-
Constructor Summary
Constructors Constructor Description BasicSslSocketFactory()
-
Method Summary
All Methods Static 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 inaddr, int j)
Socket
createSocket(InetAddress inaddr, int i)
Socket
createSocket(InetAddress inaddr, int i, InetAddress inaddr1, int j)
Socket
createSocket(Socket socket, String s, int i, boolean flag)
static SSLSocketFactory
getDefault()
String[]
getDefaultCipherSuites()
String[]
getSupportedCipherSuites()
-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket
-
-
-
-
Constructor Detail
-
BasicSslSocketFactory
public BasicSslSocketFactory()
- Throws:
SecurityException
- if theSSLSocketFactory
instantiation failed
-
-
Method Detail
-
getDefault
public static SSLSocketFactory getDefault()
- Returns:
- an instance of the
BasicSslSocketFactory
- Throws:
SecurityException
- if theSSLSocketFactory
instantiation failed
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, String s, int i, boolean flag) throws IOException
- Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inaddr, int i, InetAddress inaddr1, int j) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inaddr, int i) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String s, int i, InetAddress inaddr, int j) 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
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
-