Class AlfrescoSSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.alfresco.repo.security.authentication.AlfrescoSSLSocketFactory
-
public class AlfrescoSSLSocketFactory extends SSLSocketFactory
SSL socket factory that uses custom trustStore
The factory should be first initialized- Since:
- 5.0
- Author:
- alex.mukha
-
-
Constructor Summary
Constructors Constructor Description AlfrescoSSLSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket(String s, int i)SocketcreateSocket(String s, int i, InetAddress inetAddress, int i2)SocketcreateSocket(InetAddress inetAddress, int i)SocketcreateSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2)SocketcreateSocket(Socket socket, String s, int i, boolean b)static SocketFactorygetDefault()String[]getDefaultCipherSuites()String[]getSupportedCipherSuites()static voidinitTrustedSSLSocketFactory(KeyStore trustStore)Initialize the factory with custom trustStore-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket
-
Methods inherited from class javax.net.SocketFactory
createSocket
-
-
-
-
Method Detail
-
initTrustedSSLSocketFactory
public static void initTrustedSSLSocketFactory(KeyStore trustStore)
Initialize the factory with custom trustStore- Parameters:
trustStore- KeyStore
-
getDefault
public static SocketFactory getDefault()
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException
- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String s, int i) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(String s, int i, InetAddress inetAddress, int i2) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(InetAddress inetAddress, int i) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
-