public class NettySSLOptionsFactory extends Object implements SSLOptionsFactory
NettySSLOptions instances.
Configuration Parameters:
| Name | Default | Description |
| provider | No default. | The SslContext implementation to use, as specified through the SslProvider enum. |
| ciphers | No default. | The cipher suites to enable, in the order of preference. |
| clientAuth | No default. | The client authentication mode. |
| sessionCacheSize | No default. | The size of the cache used for storing SSL session objects. |
| sessionTimeout | No default. | The timeout for the cached SSL session objects. |
| trustCertChainFile | No default. | Trusted certificates for verifying the remote endpoint's certificate. The file should contain an X.509 certificate chain in PEM format. |
| keyManager.keyCertChainFile | No default. | An X.509 certificate chain file in PEM format identifying this host. |
| keyManager.keyFile | No default. | A PKCS#8 private key file in PEM format identifying this host. |
| keyManager.keyPassword | No default. | The password of the keyFile. |
| Constructor and Description |
|---|
NettySSLOptionsFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.SSLOptions |
build() |
List<String> |
getCiphers() |
io.netty.handler.ssl.ClientAuth |
getClientAuth() |
systems.composable.dropwizard.cassandra.ssl.NettySSLOptionsFactory.KeyManagerConfig |
getKeyManager() |
io.netty.handler.ssl.SslProvider |
getProvider() |
Long |
getSessionCacheSize() |
io.dropwizard.util.Duration |
getSessionTimeout() |
File |
getTrustCertChainFile() |
boolean |
isClientAuthConfigValid() |
void |
setCiphers(List<String> ciphers) |
void |
setClientAuth(io.netty.handler.ssl.ClientAuth clientAuth) |
void |
setKeyManager(systems.composable.dropwizard.cassandra.ssl.NettySSLOptionsFactory.KeyManagerConfig keyManager) |
void |
setProvider(io.netty.handler.ssl.SslProvider provider) |
void |
setSessionCacheSize(Long sessionCacheSize) |
void |
setSessionTimeout(io.dropwizard.util.Duration sessionTimeout) |
void |
setTrustCertChainFile(File trustCertChainFile) |
public io.netty.handler.ssl.SslProvider getProvider()
public void setProvider(io.netty.handler.ssl.SslProvider provider)
public io.netty.handler.ssl.ClientAuth getClientAuth()
public void setClientAuth(io.netty.handler.ssl.ClientAuth clientAuth)
public Long getSessionCacheSize()
public void setSessionCacheSize(Long sessionCacheSize)
public io.dropwizard.util.Duration getSessionTimeout()
public void setSessionTimeout(io.dropwizard.util.Duration sessionTimeout)
public File getTrustCertChainFile()
public void setTrustCertChainFile(File trustCertChainFile)
public systems.composable.dropwizard.cassandra.ssl.NettySSLOptionsFactory.KeyManagerConfig getKeyManager()
public void setKeyManager(systems.composable.dropwizard.cassandra.ssl.NettySSLOptionsFactory.KeyManagerConfig keyManager)
@ValidationMethod(message="must define keyManager when clientAuth is REQUIRE") public boolean isClientAuthConfigValid()
public com.datastax.driver.core.SSLOptions build()
build in interface SSLOptionsFactoryCopyright © 2016 Composable Systems Limited. All rights reserved.