public interface SslContextFactory
SslContext
, the factory is configured with the fluent setters until create()
to obtain a properly configured SslContext
.Modifier and Type | Method and Description |
---|---|
default SslContextFactory |
applicationProtocols(List<String> applicationProtocols)
Set the application protocols to use when using ALPN.
|
default SslContextFactory |
clientAuth(ClientAuth clientAuth)
Configures the client auth
|
SslContext |
create() |
default SslContextFactory |
enabledCipherSuites(Set<String> enabledCipherSuites)
Set the enabled cipher suites.
|
default SslContextFactory |
forClient(boolean forClient)
Set whether to build a context for clients or for servers
|
default SslContextFactory |
keyMananagerFactory(KeyManagerFactory kmf)
Set the key manager factory to use.
|
default SslContextFactory |
serverName(String serverName)
Set the SNI server name.
|
default SslContextFactory |
trustManagerFactory(TrustManagerFactory tmf)
Set the trust manager factory to use.
|
default SslContextFactory |
useAlpn(boolean useAlpn)
Set whether to use ALPN.
|
default SslContextFactory useAlpn(boolean useAlpn)
useAlpn
- true
to use ALPNdefault SslContextFactory clientAuth(ClientAuth clientAuth)
clientAuth
- the client auth to usedefault SslContextFactory forClient(boolean forClient)
forClient
- true
for client otherwise for serversdefault SslContextFactory keyMananagerFactory(KeyManagerFactory kmf)
kmf
- the key manager factory instancedefault SslContextFactory trustManagerFactory(TrustManagerFactory tmf)
tmf
- the trust manager factory instancedefault SslContextFactory enabledCipherSuites(Set<String> enabledCipherSuites)
enabledCipherSuites
- the set of cipher suitesdefault SslContextFactory applicationProtocols(List<String> applicationProtocols)
applicationProtocols
- this list of application protocolsdefault SslContextFactory serverName(String serverName)
serverName
- the server nameSslContext create() throws SSLException
SslContext
SSLException
Copyright © 2024 Eclipse. All rights reserved.