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