public static class JdkSSLOptions.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
cipherSuites |
protected SSLContext |
context |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JdkSSLOptions |
build()
Builds a new instance based on the parameters provided to this builder.
|
JdkSSLOptions.Builder |
withCipherSuites(String[] cipherSuites)
Set the cipher suites to use.
|
JdkSSLOptions.Builder |
withSSLContext(SSLContext context)
Set the SSL context to use.
|
protected SSLContext context
protected String[] cipherSuites
public JdkSSLOptions.Builder withSSLContext(SSLContext context)
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.
context - the SSL context.public JdkSSLOptions.Builder withCipherSuites(String[] cipherSuites)
If this method isn't called, the default is to present all the eligible client ciphers to the server.
cipherSuites - the cipher suites to use.public JdkSSLOptions build()
Copyright © 2012–2023. All rights reserved.