2 Replies Latest reply on May 25, 2006 9:06 AM by mazz

    extending SSLSocketBuilder - need methods to be protected

    mazz Master

      This is a request for enhancement.

      Can we make the private methods in SSLSocketBuilder protected to help facilitate subclassing?

      I think I still need to customize the SSL stuff even further, but I don't want to have to re-write or cut-n-paste that which is already implemented in SSLSocketBuilder.

      I envision being able to override createCustomServerSocketFactory and createCustomSocketFactory in my subclass to do some additional things with the SSLContext and possibly wrapping the factories in my own implementation, along the same lines as what UserModeSSLServerSocketFactory is doing (i.e. I may want access to the actual sockets that get created).

      I think the following private methods should be made protected:

      createCustomServerSocketFactory
      createCustomSocketFactory
      getTrustManagerFactory
      getKeyManagerFactory
      getKeyStore