Package redis.clients.jedis
Class SslOptions.Builder
- java.lang.Object
-
- redis.clients.jedis.SslOptions.Builder
-
- Enclosing class:
- SslOptions
public static class SslOptions.Builder extends java.lang.ObjectBuilder forSslOptions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SslOptionsbuild()Build theSslOptions.SslOptions.Builderkeystore(java.io.File keystore)Sets the Keystore file to load client certificates.SslOptions.Builderkeystore(java.io.File keystore, char[] keystorePassword)Sets the Keystore file to load client certificates.SslOptions.Builderkeystore(java.net.URL keystore)Sets the Keystore resource to load client certificates.SslOptions.Builderkeystore(java.net.URL keystore, char[] keystorePassword)Sets the Keystore resource to load client certificates.SslOptions.Builderkeystore(SslOptions.Resource resource, char[] keystorePassword)Sets the Java Keystore resource to load client certificates.SslOptions.BuilderkeyStoreType(java.lang.String keyStoreType)Sets the KeyStore type.SslOptions.BuildersslParameters(javax.net.ssl.SSLParameters sslParameters)Sets SSL parameters.SslOptions.BuildersslProtocol(java.lang.String sslProtocol)Sets SSL protocol.SslOptions.BuildersslVerifyMode(SslVerifyMode sslVerifyMode)Sets SSL verify mode.SslOptions.Buildertruststore(java.io.File truststore)Sets the Truststore file to load trusted certificates.SslOptions.Buildertruststore(java.io.File truststore, char[] truststorePassword)Sets the Truststore file to load trusted certificates.SslOptions.Buildertruststore(java.net.URL truststore)Sets the Truststore resource to load trusted certificates.SslOptions.Buildertruststore(java.net.URL truststore, char[] truststorePassword)Sets the Truststore resource to load trusted certificates.SslOptions.Buildertruststore(SslOptions.Resource resource, char[] truststorePassword)Sets the Truststore resource to load trusted certificates.SslOptions.BuildertrustStoreType(java.lang.String trustStoreType)Sets the TrustStore type.
-
-
-
Method Detail
-
keyStoreType
public SslOptions.Builder keyStoreType(java.lang.String keyStoreType)
Sets the KeyStore type. Defaults toKeyStore.getDefaultType()if not set.- Parameters:
keyStoreType- the keystore type to use, must not benull.- Returns:
this
-
trustStoreType
public SslOptions.Builder trustStoreType(java.lang.String trustStoreType)
Sets the TrustStore type. Defaults toKeyStore.getDefaultType()if not set.- Parameters:
trustStoreType- the truststore type to use, must not benull.- Returns:
this
-
keystore
public SslOptions.Builder keystore(java.io.File keystore)
Sets the Keystore file to load client certificates.- Parameters:
keystore- the keystore file, must not benull.- Returns:
this
-
keystore
public SslOptions.Builder keystore(java.io.File keystore, char[] keystorePassword)
Sets the Keystore file to load client certificates.- Parameters:
keystore- the keystore file, must not benull.keystorePassword- the keystore password. May be empty to omit password and the keystore integrity check.- Returns:
this
-
keystore
public SslOptions.Builder keystore(java.net.URL keystore)
Sets the Keystore resource to load client certificates.- Parameters:
keystore- the keystore URL, must not benull.- Returns:
this
-
keystore
public SslOptions.Builder keystore(java.net.URL keystore, char[] keystorePassword)
Sets the Keystore resource to load client certificates.- Parameters:
keystore- the keystore URL, must not benull.keystorePassword- the keystore password- Returns:
this
-
keystore
public SslOptions.Builder keystore(SslOptions.Resource resource, char[] keystorePassword)
Sets the Java Keystore resource to load client certificates.- Parameters:
resource- the provider that opens aInputStreamto the keystore file, must not benull.keystorePassword- the keystore password. May be empty to omit password and the keystore integrity check.- Returns:
this
-
truststore
public SslOptions.Builder truststore(java.io.File truststore)
Sets the Truststore file to load trusted certificates.- Parameters:
truststore- the truststore file, must not benull.- Returns:
this
-
truststore
public SslOptions.Builder truststore(java.io.File truststore, char[] truststorePassword)
Sets the Truststore file to load trusted certificates.- Parameters:
truststore- the truststore file, must not benull.truststorePassword- the truststore password. May be empty to omit password and the truststore integrity check.- Returns:
this
-
truststore
public SslOptions.Builder truststore(java.net.URL truststore)
Sets the Truststore resource to load trusted certificates.- Parameters:
truststore- the truststore URL, must not benull.- Returns:
this
-
truststore
public SslOptions.Builder truststore(java.net.URL truststore, char[] truststorePassword)
Sets the Truststore resource to load trusted certificates.- Parameters:
truststore- the truststore URL, must not benull.truststorePassword- the truststore password. May be empty to omit password and the truststore integrity check.- Returns:
this
-
truststore
public SslOptions.Builder truststore(SslOptions.Resource resource, char[] truststorePassword)
Sets the Truststore resource to load trusted certificates.- Parameters:
resource- the provider that opens aInputStreamto the keystore file, must not benull.truststorePassword- the truststore password. May be empty to omit password and the truststore integrity check.- Returns:
this
-
sslParameters
public SslOptions.Builder sslParameters(javax.net.ssl.SSLParameters sslParameters)
Sets SSL parameters.- Parameters:
sslParameters- the SSL parameters- Returns:
this
-
sslVerifyMode
public SslOptions.Builder sslVerifyMode(SslVerifyMode sslVerifyMode)
Sets SSL verify mode.- Parameters:
sslVerifyMode- the SSL verify mode- Returns:
this
-
sslProtocol
public SslOptions.Builder sslProtocol(java.lang.String sslProtocol)
Sets SSL protocol.- Parameters:
sslProtocol- the SSL protocol- Returns:
this
-
build
public SslOptions build()
Build theSslOptions.- Returns:
- the
SslOptions
-
-