public class SslConfigurationBuilder extends AbstractConfigurationChildBuilder
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private java.lang.String |
keyStoreFileName |
private char[] |
keyStorePassword |
private static org.infinispan.client.hotrod.logging.Log |
log |
private javax.net.ssl.SSLContext |
sslContext |
private java.lang.String |
trustStoreFileName |
private char[] |
trustStorePassword |
Modifier | Constructor and Description |
---|---|
protected |
SslConfigurationBuilder(ConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
SslConfiguration |
create() |
SslConfigurationBuilder |
disable()
Disables the SSL support
|
SslConfigurationBuilder |
enable()
Enables the SSL support
|
SslConfigurationBuilder |
enabled(boolean enabled)
Enables or disables the SSL support
|
SslConfigurationBuilder |
keyStoreFileName(java.lang.String keyStoreFileName)
Specifies the filename of a keystore to use to create the
SSLContext You also need to
specify a keyStorePassword(char[]) . |
SslConfigurationBuilder |
keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify a
keyStoreFileName(String) Alternatively specify an array of
#keyManagers(KeyManager[]) |
SslConfigurationBuilder |
read(SslConfiguration template) |
SslConfigurationBuilder |
sslContext(javax.net.ssl.SSLContext sslContext) |
SslConfigurationBuilder |
trustStoreFileName(java.lang.String trustStoreFileName)
Specifies the filename of a truststore to use to create the
SSLContext You also need
to specify a trustStorePassword(char[]) . |
SslConfigurationBuilder |
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify a
trustStoreFileName(String) Alternatively specify an array of
#trustManagers(TrustManager[]) |
void |
validate() |
addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, build, classLoader, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, pingOnStartup, protocolVersion, socketTimeout, ssl, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, withProperties
private static final org.infinispan.client.hotrod.logging.Log log
private boolean enabled
private java.lang.String keyStoreFileName
private char[] keyStorePassword
private java.lang.String trustStoreFileName
private char[] trustStorePassword
private javax.net.ssl.SSLContext sslContext
protected SslConfigurationBuilder(ConfigurationBuilder builder)
public SslConfigurationBuilder disable()
public SslConfigurationBuilder enable()
public SslConfigurationBuilder enabled(boolean enabled)
public SslConfigurationBuilder keyStoreFileName(java.lang.String keyStoreFileName)
SSLContext
You also need to
specify a keyStorePassword(char[])
. Alternatively specify an array of
#keyManagers(KeyManager[])
public SslConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String)
Alternatively specify an array of
#keyManagers(KeyManager[])
public SslConfigurationBuilder sslContext(javax.net.ssl.SSLContext sslContext)
public SslConfigurationBuilder trustStoreFileName(java.lang.String trustStoreFileName)
SSLContext
You also need
to specify a trustStorePassword(char[])
. Alternatively specify an array of
#trustManagers(TrustManager[])
public SslConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String)
Alternatively specify an array of
#trustManagers(TrustManager[])
public void validate()
public SslConfiguration create()
public SslConfigurationBuilder read(SslConfiguration template)