Class TestSslUtil

java.lang.Object
org.jboss.resteasy.bootstrap.test.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 Details

    • TestSslUtil

      public TestSslUtil()
  • Method Details

    • 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