public class SslContextConstructor extends Object
Constructor and Description |
---|
SslContextConstructor() |
Modifier and Type | Method and Description |
---|---|
static io.netty.handler.ssl.SslContext |
constructSslContext(boolean isServer,
String keyStorePath,
String ksPasswordFile,
String trustStorePath,
String tsPasswordFile)
Create SslContext object based on a spec of individual configuration strings.
|
public static io.netty.handler.ssl.SslContext constructSslContext(boolean isServer, @NonNull String keyStorePath, String ksPasswordFile, @NonNull String trustStorePath, String tsPasswordFile) throws SSLException
isServer
- Server or clientkeyStorePath
- Key store path stringksPasswordFile
- Key store password file stringtrustStorePath
- Trust store path stringtsPasswordFile
- Trust store password file path stringSSLException
- Wrapper exception for any issue reading the key/trust store.Copyright © 2019 CorfuDB. All rights reserved.