Class AlfrescoSSLSocketFactory


  • public class AlfrescoSSLSocketFactory
    extends javax.net.ssl.SSLSocketFactory
    SSL socket factory that uses custom trustStore
    The factory should be first initialized
    Since:
    5.0
    Author:
    alex.mukha
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket createSocket​(java.lang.String s, int i)  
      java.net.Socket createSocket​(java.lang.String s, int i, java.net.InetAddress inetAddress, int i2)  
      java.net.Socket createSocket​(java.net.InetAddress inetAddress, int i)  
      java.net.Socket createSocket​(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress2, int i2)  
      java.net.Socket createSocket​(java.net.Socket socket, java.lang.String s, int i, boolean b)  
      static javax.net.SocketFactory getDefault()  
      java.lang.String[] getDefaultCipherSuites()  
      java.lang.String[] getSupportedCipherSuites()  
      static void initTrustedSSLSocketFactory​(java.security.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlfrescoSSLSocketFactory

        public AlfrescoSSLSocketFactory()
    • 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:
        getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactory
      • getSupportedCipherSuites

        public java.lang.String[] getSupportedCipherSuites()
        Specified by:
        getSupportedCipherSuites in class javax.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:
        createSocket in class javax.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:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
        java.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:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException
      • createSocket

        public java.net.Socket createSocket​(java.net.InetAddress inetAddress,
                                            int i)
                                     throws java.io.IOException
        Specified by:
        createSocket in class javax.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:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException