Top Description Fields Constructors Methods
io.netty5.handler.ssl

pack-priv final Class OpenSslServerContext

extends OpenSslContext
Class Inheritance
Imports
io.netty.internal.tcnative.SSL, javax.net.ssl.KeyManagerFactory, .SSLException, .TrustManagerFactory, java.security.PrivateKey, java.security.cert.X509Certificate, java.util.Map

A server-side SslContext which uses OpenSSL's SSL/TLS implementation.

This class will use a finalizer to ensure native resources are automatically cleaned up. To avoid finalizers and manually release the native memory see ReferenceCountedOpenSslServerContext.

Field Summary

Modifier and TypeField and Description
private final OpenSslServerSessionContext

Constructor Summary

AccessConstructor and Description
pack-priv
OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.Entry<SslContextOption<?>, Object>... options)

private
OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.Entry<SslContextOption<?>, Object>... options)

Deprecated as a consequence of OpenSslApplicationProtocolNegotiator being deprecated.

Method Summary

Modifier and TypeMethod and Description
public OpenSslServerSessionContext
sessionContext()

Implements abstract io.netty5.handler.ssl.ReferenceCountedOpenSslContext.sessionContext.

Returns the SSLSessionContext object held by this context.
Inherited from io.netty5.handler.ssl.OpenSslContext:
finalizenewEngine0

Field Detail

sessionContextback to summary
private final OpenSslServerSessionContext sessionContext

Constructor Detail

OpenSslServerContextback to summary
pack-priv OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.Entry<SslContextOption<?>, Object>... options) throws SSLException
OpenSslServerContextback to summary
private OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.Entry<SslContextOption<?>, Object>... options) throws SSLException

Deprecated

as a consequence of OpenSslApplicationProtocolNegotiator being deprecated. See corresponding docs for further information.

Annotations
@SuppressWarnings:deprecation

Method Detail

sessionContextback to summary
public OpenSslServerSessionContext sessionContext()

Implements abstract io.netty5.handler.ssl.ReferenceCountedOpenSslContext.sessionContext.

Doc from io.netty5.handler.ssl.SslContext.sessionContext.

Returns the SSLSessionContext object held by this context.

Annotations
@Override