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 Summary
Constructors Constructor Description TestSslUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SSLContextcreateClientSslContext()Creates anSSLContextfor a client.static SSLContextcreateServerSslContext()Creates anSSLContextfor a server.
-
-
-
Method Detail
-
createServerSslContext
public static SSLContext createServerSslContext() throws Exception
Creates anSSLContextfor a server.- Returns:
- the SSL context
- Throws:
Exception- if an error occurs creating the SSL context
-
createClientSslContext
public static SSLContext createClientSslContext() throws Exception
Creates anSSLContextfor a client.- Returns:
- the SSL context
- Throws:
Exception- if an error occurs creating the SSL context
-
-