public class SslContextFactory extends Object
SSLContext
for use with an HTTP connection.Constructor and Description |
---|
SslContextFactory() |
Modifier and Type | Method and Description |
---|---|
SSLContext |
forDirectory(String directory)
Create an
SSLContext from files in the specified directory. |
public SSLContext forDirectory(String directory)
SSLContext
from files in the specified directory. The directory
must contain files with the names 'key.pem', 'cert.pem', and 'ca.pem'.directory
- the path to a directory containing certificate and key filesSSLContext