com.datastax.driver.core
Class SSLOptions

java.lang.Object
  extended by com.datastax.driver.core.SSLOptions

public class SSLOptions
extends Object

Options to provide to enable SSL connections.


Field Summary
static String[] DEFAULT_SSL_CIPHER_SUITES
          The default SSL cipher suites.
 
Constructor Summary
SSLOptions()
          Creates default SSL options.
SSLOptions(SSLContext context, String[] cipherSuites)
          Creates SSL options that uses the provided SSL context and cipher suites.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SSL_CIPHER_SUITES

public static final String[] DEFAULT_SSL_CIPHER_SUITES
The default SSL cipher suites.

Constructor Detail

SSLOptions

public SSLOptions()
Creates default SSL options.

The resulting options will use the default JSSE options, and you can use the default JSSE System properties to customize it's behavior. This may in particular involve creating a simple keyStore and trustStore.

The cipher suites used by this default instance are the one defined by DEFAULT_SSL_CIPHER_SUITES and match the default cipher suites supported by Cassandra server side.


SSLOptions

public SSLOptions(SSLContext context,
                  String[] cipherSuites)
Creates SSL options that uses the provided SSL context and cipher suites.

Parameters:
context - the SSLContext to use.
cipherSuites - the cipher suites to use.


Copyright © 2013. All Rights Reserved.