public static class SslOptions.Builder extends Object
SslOptions.| Modifier and Type | Method and Description |
|---|---|
SslOptions |
build()
Create a new instance of
SslOptions |
SslOptions.Builder |
jdkSslProvider()
Use the JDK SSL provider for SSL connections.
|
SslOptions.Builder |
openSslProvider()
Use the OpenSSL provider for SSL connections.
|
SslOptions.Builder |
truststore(File truststore)
Sets the Truststore file to load trusted certificates.
|
SslOptions.Builder |
truststore(File truststore,
String truststorePassword)
Sets the Truststore file to load trusted certificates.
|
SslOptions.Builder |
truststore(URL truststore)
Sets the Truststore resource to load trusted certificates.
|
SslOptions.Builder |
truststore(URL truststore,
String truststorePassword)
Sets the Truststore resource to load trusted certificates.
|
public SslOptions.Builder jdkSslProvider()
thispublic SslOptions.Builder openSslProvider()
netty-tcnative dependency with the OpenSSL JNI
binary.thisIllegalStateException - if OpenSSL is not availablepublic SslOptions.Builder truststore(File truststore)
KeyStore which is jks by default. Truststores are reloaded on each connection attempt
that allows to replace certificates during runtime.truststore - the truststore file, must not be null.thispublic SslOptions.Builder truststore(File truststore, String truststorePassword)
KeyStore which is jks by default. Truststores are reloaded on each connection attempt
that allows to replace certificates during runtime.truststore - the truststore file, must not be null.truststorePassword - the truststore password. May be empty to omit password and the truststore integrity check.thispublic SslOptions.Builder truststore(URL truststore)
KeyStore which is jks by default. Truststores are reloaded on each connection attempt
that allows to replace certificates during runtime.truststore - the truststore file, must not be null.thispublic SslOptions.Builder truststore(URL truststore, String truststorePassword)
KeyStore which is jks by default. Truststores are reloaded on each connection attempt
that allows to replace certificates during runtime.truststore - the truststore file, must not be null.truststorePassword - the truststore password. May be empty to omit password and the truststore integrity check.thispublic SslOptions build()
SslOptionsSslOptionsCopyright © 2016. All rights reserved.