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 SSLContext
createClientSslContext()
Creates anSSLContext
for a client.static SSLContext
createServerSslContext()
Creates anSSLContext
for a server.
-
-
-
Method Detail
-
createServerSslContext
public static SSLContext createServerSslContext() throws Exception
Creates anSSLContext
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 anSSLContext
for a client.- Returns:
- the SSL context
- Throws:
Exception
- if an error occurs creating the SSL context
-
-