Class SocketFactoryCreator2


  • public class SocketFactoryCreator2
    extends java.lang.Object
    Utility allowing programmers to quickly create SSL socket factories using configuration abstractions of this library.
    • Method Detail

      • getSSLTrustManager

        public javax.net.ssl.X509TrustManager getSSLTrustManager()
        Creates a SSL trustmanager which uses the provided validator.
        Returns:
        ready to use TrustManager
      • getSSLContext

        public javax.net.ssl.SSLContext getSSLContext()
        Low level interface. It can be used to get SSLContext object initialized with the provided credential and validator.
        Returns:
        initialized SSLContext object
      • getServerSocketFactory

        public javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()
        Returns an SSLServerSocketFactory configured to check client certificates with a provided validator. Server socket will use the provided credentials.
        Returns:
        configured SSLServerSocketFactory
      • getSocketFactory

        public javax.net.ssl.SSLSocketFactory getSocketFactory()
        Returns an SSLSocketFactory configured to check servers' certificates with a provided validator. Client socket will use the provided credentials.
        Returns:
        configured SSLSocketFactory