Class AlfrescoSSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.alfresco.repo.security.authentication.AlfrescoSSLSocketFactory
-
public class AlfrescoSSLSocketFactory extends javax.net.ssl.SSLSocketFactorySSL 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 java.net.SocketcreateSocket(java.lang.String s, int i)java.net.SocketcreateSocket(java.lang.String s, int i, java.net.InetAddress inetAddress, int i2)java.net.SocketcreateSocket(java.net.InetAddress inetAddress, int i)java.net.SocketcreateSocket(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress2, int i2)java.net.SocketcreateSocket(java.net.Socket socket, java.lang.String s, int i, boolean b)static javax.net.SocketFactorygetDefault()java.lang.String[]getDefaultCipherSuites()java.lang.String[]getSupportedCipherSuites()static voidinitTrustedSSLSocketFactory(java.security.KeyStore trustStore)Initialize the factory with custom trustStore
-
-
-
Method Detail
-
initTrustedSSLSocketFactory
public static void initTrustedSSLSocketFactory(java.security.KeyStore trustStore)
Initialize the factory with custom trustStore- Parameters:
trustStore- KeyStore
-
getDefault
public static javax.net.SocketFactory getDefault()
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
createSocket
public java.net.Socket createSocket(java.net.Socket socket, java.lang.String s, int i, boolean b) throws java.io.IOException- Specified by:
createSocketin classjavax.net.ssl.SSLSocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String s, int i) throws java.io.IOException, java.net.UnknownHostException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOExceptionjava.net.UnknownHostException
-
createSocket
public java.net.Socket createSocket(java.lang.String s, int i, java.net.InetAddress inetAddress, int i2) throws java.io.IOException, java.net.UnknownHostException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOExceptionjava.net.UnknownHostException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress inetAddress, int i) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress2, int i2) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
-