Class TestSslUtil


  • public class TestSslUtil
    extends Object
    This is only meant for use in tests and should not be used outside of tests.
    Author:
    James R. Perkins
    • Constructor Detail

      • TestSslUtil

        public TestSslUtil()
    • Method Detail

      • createServerSslContext

        public static SSLContext createServerSslContext()
                                                 throws Exception
        Creates an SSLContext for a server.
        Returns:
        the SSL context
        Throws:
        Exception - if an error occurs creating the SSL context
      • createClientSslContext

        public static SSLContext createClientSslContext()
                                                 throws Exception
        Creates an SSLContext for a client.
        Returns:
        the SSL context
        Throws:
        Exception - if an error occurs creating the SSL context