Class AlfrescoSSLSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.alfresco.repo.security.authentication.AlfrescoSSLSocketFactory
SSL socket factory that uses custom trustStore
The factory should be first initialized
The factory should be first initialized
- Since:
- 5.0
- Author:
- alex.mukha
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String s, int i) createSocket(String s, int i, InetAddress inetAddress, int i2) createSocket(InetAddress inetAddress, int i) createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) createSocket(Socket socket, String s, int i, boolean b) static SocketFactoryString[]String[]static voidinitTrustedSSLSocketFactory(KeyStore trustStore) Initialize the factory with custom trustStoreMethods inherited from class javax.net.ssl.SSLSocketFactory
createSocketMethods inherited from class javax.net.SocketFactory
createSocket
-
Constructor Details
-
AlfrescoSSLSocketFactory
public AlfrescoSSLSocketFactory()
-
-
Method Details
-
initTrustedSSLSocketFactory
Initialize the factory with custom trustStore- Parameters:
trustStore- KeyStore
-
getDefault
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
createSocket
- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createSocket
- 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
- 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
-