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 |
keystore(File keystore)
Sets the Keystore file to load client certificates.
|
SslOptions.Builder |
keystore(File keystore,
char[] keystorePassword)
Sets the Keystore file to load client certificates.
|
SslOptions.Builder |
keystore(URL keystore)
Sets the Keystore resource to load client certificates.
|
SslOptions.Builder |
keystore(URL keystore,
char[] keystorePassword)
Sets the Keystore resource to load client certificates.
|
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 keystore(File keystore)
KeyStore which is jks by default. Keystores are reloaded on each connection attempt
that allows to replace certificates during runtime.keystore - the keystore file, must not be null.thispublic SslOptions.Builder keystore(File keystore, char[] keystorePassword)
KeyStore which is jks by default. Keystores are reloaded on each connection attempt
that allows to replace certificates during runtime.keystore - the keystore file, must not be null.keystorePassword - the keystore password. May be empty to omit password and the keystore integrity check.thispublic SslOptions.Builder keystore(URL keystore)
KeyStore which is jks by default. Keystore are reloaded on each connection attempt that
allows to replace certificates during runtime.keystore - the keystore file, must not be null.thispublic SslOptions.Builder keystore(URL keystore, char[] keystorePassword)
KeyStore which is jks by default. Keystores are reloaded on each connection attempt
that allows to replace certificates during runtime.keystore - the keystore file, must not be null.keystorePassword - the keystore password. May be empty to omit password and the keystore integrity check.thispublic 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 © 2019 lettuce.io. All rights reserved.