public static class SslOptions.Builder
extends java.lang.Object
SslOptions.| Modifier and Type | Method and Description |
|---|---|
SslOptions |
build()
Create a new instance of
SslOptions |
SslOptions.Builder |
keystore(java.io.File keystore)
Sets the Keystore file to load client certificates.
|
SslOptions.Builder |
keystore(java.io.File keystore,
char[] keystorePassword)
Sets the Keystore file to load client certificates.
|
SslOptions.Builder |
keystore(SslOptions.Resource resource,
char[] keystorePassword)
Sets the Java Keystore resource to load client certificates.
|
SslOptions.Builder |
keystore(java.net.URL keystore)
Sets the Keystore resource to load client certificates.
|
SslOptions.Builder |
keystore(java.net.URL keystore,
char[] keystorePassword)
Sets the Keystore resource to load client certificates.
|
SslOptions.Builder |
keyStoreType(java.lang.String keyStoreType)
Sets the KeyStore type.
|
SslOptions.Builder |
sslParameters(javax.net.ssl.SSLParameters sslParameters)
Sets a configured
SSLParameters. |
SslOptions.Builder |
sslProtocol(java.lang.String protocol)
The SSL/TLS protocol to be used to initialize
SSLContext. |
SslOptions.Builder |
sslVerifyMode(SslVerifyMode sslVerifyMode)
Sets the
SslVerifyMode. |
SslOptions.Builder |
truststore(java.io.File truststore)
Sets the Truststore file to load trusted certificates.
|
SslOptions.Builder |
truststore(java.io.File truststore,
char[] truststorePassword)
Sets the Truststore file to load trusted certificates.
|
SslOptions.Builder |
truststore(SslOptions.Resource resource,
char[] truststorePassword)
Sets the Truststore resource to load trusted certificates.
|
SslOptions.Builder |
truststore(java.net.URL truststore)
Sets the Truststore resource to load trusted certificates.
|
SslOptions.Builder |
truststore(java.net.URL truststore,
char[] truststorePassword)
Sets the Truststore resource to load trusted certificates.
|
SslOptions.Builder |
trustStoreType(java.lang.String trustStoreType)
Sets the KeyStore type.
|
public SslOptions.Builder keyStoreType(java.lang.String keyStoreType)
KeyStore.getDefaultType() if not set.keyStoreType - the keystore type to use, must not be null.thispublic SslOptions.Builder trustStoreType(java.lang.String trustStoreType)
KeyStore.getDefaultType() if not set.trustStoreType - the keystore type to use, must not be null.thispublic SslOptions.Builder keystore(java.io.File keystore)
KeyStore which is KeyStore.getDefaultType() by default. The keystore is reloaded on
each connection attempt that allows to replace certificates during runtime.keystore - the keystore file, must not be null.thispublic SslOptions.Builder keystore(java.io.File keystore, char[] keystorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The keystore is 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(java.net.URL keystore)
KeyStore which is KeyStore.getDefaultType() by default. The keystore is reloaded on
each connection attempt that allows to replace certificates during runtime.keystore - the keystore URL, must not be null.thispublic SslOptions.Builder keystore(java.net.URL keystore, char[] keystorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The keystore is reloaded on
each connection attempt that allows to replace certificates during runtime.keystore - the keystore file, must not be null.keystorePassword - thispublic SslOptions.Builder keystore(SslOptions.Resource resource, char[] keystorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The keystore is reloaded on
each connection attempt that allows to replace certificates during runtime.resource - the provider that opens a InputStream to 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(java.io.File truststore)
KeyStore which is KeyStore.getDefaultType() by default. The truststore is reloaded on
each connection attempt that allows to replace certificates during runtime.truststore - the truststore file, must not be null.thispublic SslOptions.Builder truststore(java.io.File truststore, char[] truststorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The truststore is 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(java.net.URL truststore)
KeyStore which is KeyStore.getDefaultType() by default. The truststore is reloaded on
each connection attempt that allows to replace certificates during runtime.truststore - the truststore file, must not be null.thispublic SslOptions.Builder truststore(java.net.URL truststore, char[] truststorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The truststore is 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(SslOptions.Resource resource, char[] truststorePassword)
KeyStore which is KeyStore.getDefaultType() by default. The truststore is reloaded on
each connection attempt that allows to replace certificates during runtime.resource - the provider that opens a InputStream to the keystore file, must not be null.truststorePassword - the truststore password. May be empty to omit password and the truststore integrity check.thispublic SslOptions.Builder sslParameters(javax.net.ssl.SSLParameters sslParameters)
SSLParameters.sslParameters - a SSLParameters object.thispublic SslOptions.Builder sslVerifyMode(SslVerifyMode sslVerifyMode)
SslVerifyMode.sslVerifyMode - the SslVerifyMode.thispublic SslOptions.Builder sslProtocol(java.lang.String protocol)
SSLContext.protocol - the ssl/tls protocolthispublic SslOptions build()
SslOptionsSslOptionsCopyright © 2025. All rights reserved.