Package com.datastax.driver.core
Class RemoteEndpointAwareJdkSSLOptions.Builder
- java.lang.Object
-
- com.datastax.driver.core.JdkSSLOptions.Builder
-
- com.datastax.driver.core.RemoteEndpointAwareJdkSSLOptions.Builder
-
- Enclosing class:
- RemoteEndpointAwareJdkSSLOptions
public static class RemoteEndpointAwareJdkSSLOptions.Builder extends JdkSSLOptions.Builder
Helper class to buildRemoteEndpointAwareJdkSSLOptionsinstances.
-
-
Field Summary
-
Fields inherited from class com.datastax.driver.core.JdkSSLOptions.Builder
cipherSuites, context
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteEndpointAwareJdkSSLOptionsbuild()Builds a new instance based on the parameters provided to this builder.RemoteEndpointAwareJdkSSLOptions.BuilderwithCipherSuites(String[] cipherSuites)Set the cipher suites to use.RemoteEndpointAwareJdkSSLOptions.BuilderwithSSLContext(SSLContext context)Set the SSL context to use.
-
-
-
Method Detail
-
withSSLContext
public RemoteEndpointAwareJdkSSLOptions.Builder withSSLContext(SSLContext context)
Description copied from class:JdkSSLOptions.BuilderSet the SSL context to use.If this method isn't called, a context with the default options will be used, and you can use the default JSSE System properties to customize its behavior. This may in particular involve creating a simple keyStore and trustStore.
- Overrides:
withSSLContextin classJdkSSLOptions.Builder- Parameters:
context- the SSL context.- Returns:
- this builder.
-
withCipherSuites
public RemoteEndpointAwareJdkSSLOptions.Builder withCipherSuites(String[] cipherSuites)
Description copied from class:JdkSSLOptions.BuilderSet the cipher suites to use.If this method isn't called, the default is to present all the eligible client ciphers to the server.
- Overrides:
withCipherSuitesin classJdkSSLOptions.Builder- Parameters:
cipherSuites- the cipher suites to use.- Returns:
- this builder.
-
build
public RemoteEndpointAwareJdkSSLOptions build()
Description copied from class:JdkSSLOptions.BuilderBuilds a new instance based on the parameters provided to this builder.- Overrides:
buildin classJdkSSLOptions.Builder- Returns:
- the new instance.
-
-