SslContextFactory that creates and configures a Netty SslContext using a
SslContextBuilder.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private ClientAuth | |
| private Set | |
| private boolean | |
| private KeyManagerFactory | |
| private final SslProvider | |
| private final boolean | |
| private TrustManagerFactory | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SslContextFactory | applicationProtocols(List<String>
this list of application protocols applicationProtocols)Overrides default io. Set the application protocols to use when using ALPN. |
| public SslContextFactory | clientAuth(ClientAuth
the client auth to use clientAuth)Overrides default io. Configures the client auth |
| public SslContext | |
| private SslContext | |
| public SslContextFactory | enabledCipherSuites(Set<String>
the set of cipher suites enabledCipherSuites)Overrides default io. Set the enabled cipher suites. |
| public SslContextFactory | forClient(boolean
true for client otherwise for serversOverrides default io. Set whether to build a context for clients or for servers |
| public SslContextFactory | keyMananagerFactory(KeyManagerFactory
the key manager factory instance kmf)Overrides default io. Set the key manager factory to use. |
| public SslContextFactory | trustManagerFactory(TrustManagerFactory
the trust manager factory instance tmf)Overrides default io. Set the trust manager factory to use. |
| public SslContextFactory | useAlpn(boolean
true to use ALPNOverrides default io. Set whether to use ALPN. |
| applicationProtocols | back to summary |
|---|---|
| private List<String> applicationProtocols | |
| clientAuth | back to summary |
|---|---|
| private ClientAuth clientAuth | |
| enabledCipherSuites | back to summary |
|---|---|
| private Set<String> enabledCipherSuites | |
| forClient | back to summary |
|---|---|
| private boolean forClient | |
| kmf | back to summary |
|---|---|
| private KeyManagerFactory kmf | |
| sslProvider | back to summary |
|---|---|
| private final SslProvider sslProvider | |
| sslSessionCacheEnabled | back to summary |
|---|---|
| private final boolean sslSessionCacheEnabled | |
| tmf | back to summary |
|---|---|
| private TrustManagerFactory tmf | |
| useAlpn | back to summary |
|---|---|
| private boolean useAlpn | |
| DefaultSslContextFactory | back to summary |
|---|---|
| public DefaultSslContextFactory(SslProvider sslProvider, boolean sslSessionCacheEnabled) | |
| applicationProtocols | back to summary |
|---|---|
| public SslContextFactory applicationProtocols(List<String> applicationProtocols) Overrides default io. Doc from io. Set the application protocols to use when using ALPN.
| |
| clientAuth | back to summary |
|---|---|
| public SslContextFactory clientAuth(ClientAuth clientAuth) Overrides default io. Doc from io. Configures the client auth
| |
| create | back to summary |
|---|---|
| public SslContext create() throws SSLException Implements io.
| |
| createContext | back to summary |
|---|---|
| private SslContext createContext(boolean useAlpn, boolean client, KeyManagerFactory kmf, TrustManagerFactory tmf) throws SSLException | |
| enabledCipherSuites | back to summary |
|---|---|
| public SslContextFactory enabledCipherSuites(Set<String> enabledCipherSuites) Overrides default io. Doc from io. Set the enabled cipher suites.
| |
| forClient | back to summary |
|---|---|
| public SslContextFactory forClient(boolean forClient) Overrides default io. Doc from io. Set whether to build a context for clients or for servers
| |
| keyMananagerFactory | back to summary |
|---|---|
| public SslContextFactory keyMananagerFactory(KeyManagerFactory kmf) Overrides default io. Doc from io. Set the key manager factory to use.
| |
| trustManagerFactory | back to summary |
|---|---|
| public SslContextFactory trustManagerFactory(TrustManagerFactory tmf) Overrides default io. Doc from io. Set the trust manager factory to use.
| |
| useAlpn | back to summary |
|---|---|
| public SslContextFactory useAlpn(boolean useAlpn) Overrides default io. Doc from io. Set whether to use ALPN.
| |