SslContext, the factory is configured with the fluent setters until create()
to obtain a properly configured SslContext.
| Modifier and Type | Method and Description |
|---|---|
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythis list of application protocols applicationProtocols)Set the application protocols to use when using ALPN. |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythe client auth to use clientAuth)Configures the client auth |
| public SslContext | |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythe set of cipher suites enabledCipherSuites)Set the enabled cipher suites. |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlytrue for client otherwise for serversSet whether to build a context for clients or for servers |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythe key manager factory instance kmf)Set the key manager factory to use. |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythe server name serverName)Set the SNI server name. |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlythe trust manager factory instance tmf)Set the trust manager factory to use. |
| public default SslContextFactory | Returns: a reference to this, so the API can be used fluentlytrue to use ALPNSet whether to use ALPN. |
| applicationProtocols | back to summary |
|---|---|
| public default SslContextFactory applicationProtocols(List<String> applicationProtocols) Set the application protocols to use when using ALPN.
| |
| clientAuth | back to summary |
|---|---|
| public default SslContextFactory clientAuth(ClientAuth clientAuth) Configures the client auth
| |
| create | back to summary |
|---|---|
public SslContext create() throws SSLException
| |
| enabledCipherSuites | back to summary |
|---|---|
| public default SslContextFactory enabledCipherSuites(Set<String> enabledCipherSuites) Set the enabled cipher suites.
| |
| forClient | back to summary |
|---|---|
| public default SslContextFactory forClient(boolean forClient) Set whether to build a context for clients or for servers
| |
| keyMananagerFactory | back to summary |
|---|---|
| public default SslContextFactory keyMananagerFactory(KeyManagerFactory kmf) Set the key manager factory to use.
| |
| serverName | back to summary |
|---|---|
| public default SslContextFactory serverName(String serverName) Set the SNI server name.
| |
| trustManagerFactory | back to summary |
|---|---|
| public default SslContextFactory trustManagerFactory(TrustManagerFactory tmf) Set the trust manager factory to use.
| |
| useAlpn | back to summary |
|---|---|
| public default SslContextFactory useAlpn(boolean useAlpn) Set whether to use ALPN.
| |