Top Deprecated
Netty/Handler 4.1.107.Final

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
io.netty.handler.pcap.PcapWriteHandler.PcapWriteHandler(OutputStream
OutputStream where Pcap data will be written. Call close() to close this OutputStream.
outputStream
)

Use Builder instead.

io.netty.handler.pcap.PcapWriteHandler.PcapWriteHandler(OutputStream
OutputStream where Pcap data will be written. Call close() to close this OutputStream.
outputStream
,
boolean
Set to true to enable capturing packets with empty (0 bytes) payload. Otherwise, if set to false, empty packets will be filtered out.
captureZeroByte
,
boolean
Set to true to write Pcap Global Header on initialization. Otherwise, if set to false, Pcap Global Header will not be written on initialization. This could when writing Pcap data on a existing file where Pcap Global Header is already present.
writePcapGlobalHeader
)

Use Builder instead.

io.netty.handler.ssl.BouncyCastleAlpnSslEngine.BouncyCastleAlpnSslEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)

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

io.netty.handler.ssl.ConscryptAlpnSslEngine.ClientEngine.ClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.ConscryptAlpnSslEngine.ServerEngine.ServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.ConscryptAlpnSslEngine.newClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.ConscryptAlpnSslEngine.newServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.DelegatingSslContext.applicationProtocolNegotiator()

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

io.netty.handler.ssl.ExtendedOpenSslSession.getPeerCertificateChain()

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

io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator.AlpnWrapper.wrapSslEngine(SSLEngine
The engine to wrap.
engine
,
ByteBufAllocator
the buffer allocator.
alloc
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

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

io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator.FailureWrapper.wrapSslEngine(SSLEngine
The engine to wrap.
engine
,
ByteBufAllocator
the buffer allocator.
alloc
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

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

io.netty.handler.ssl.JdkAlpnSslEngine.JdkAlpnSslEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer, BiConsumer<SSLEngine, JdkAlpnSslEngine.AlpnSelector> setHandshakeApplicationProtocolSelector, BiConsumer<SSLEngine, List<String>> setApplicationProtocols)

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

io.netty.handler.ssl.JdkAlpnSslEngine.JdkAlpnSslEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)

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

io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine(SSLEngine
The engine to wrap.
engine
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

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

Returns:

The resulting wrapped engine. This may just be engine.
io.netty.handler.ssl.JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory.wrapSslEngine
(SSLEngine
The engine to wrap.
engine
,
ByteBufAllocator
the buffer allocator.
alloc
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

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

Returns:

The resulting wrapped engine. This may just be engine.
io.netty.handler.ssl.JdkApplicationProtocolNegotiator.SslEngineWrapperFactory.wrapSslEngine
(SSLEngine
The engine to wrap.
engine
,
JdkApplicationProtocolNegotiator
The application level protocol negotiator
applicationNegotiator
,
boolean
  • true if the engine is for server side of connections
  • false if the engine is for client side of connections
isServer
)

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

io.netty.handler.ssl.JdkDefaultApplicationProtocolNegotiator.INSTANCE

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

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(Provider provider, File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)

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

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslClientContext.JdkSslClientContext(File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslContext.JdkSslContext(SSLContext
the SSLContext to use.
sslContext
,
boolean
true if this context should create SSLEngines for client-side usage.
isClient
,
ClientAuth
the ClientAuth to use. This will only be used when {@param isClient} is false.
clientAuth
)

Use JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter, ApplicationProtocolConfig, ClientAuth, String[], boolean)

io.netty.handler.ssl.JdkSslContext.JdkSslContext(SSLContext
the SSLContext to use.
sslContext
,
boolean
true if this context should create SSLEngines for client-side usage.
isClient
,
Iterable<String>
the ciphers to use or null if the standard should be used.
ciphers
,
CipherSuiteFilter
the filter to use.
cipherFilter
,
ApplicationProtocolConfig apn, ClientAuth
the ClientAuth to use. This will only be used when {@param isClient} is false.
clientAuth
)

Use JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter, ApplicationProtocolConfig, ClientAuth, String[], boolean)

io.netty.handler.ssl.JdkSslContext.JdkSslContext(SSLContext sslContext, boolean isClient, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, ClientAuth clientAuth, String[] protocols, boolean startTls)

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

io.netty.handler.ssl.JdkSslContext.apn

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

io.netty.handler.ssl.JdkSslContext.applicationProtocolNegotiator()

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

Returns:

A KeyManagerFactory based upon a key file, key file password, and a certificate chain.
io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory
(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
The existing KeyManagerFactory that will be used if not null
kmf
)

will be removed.

Returns:

A KeyManagerFactory based upon a key algorithm, key file, key file password, and a certificate chain.
io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory
(File
an buildKeyManagerFactory X.509 certificate chain file in PEM format
certChainFile
,
String
the standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names.
keyAlgorithm
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
The existing KeyManagerFactory that will be used if not null
kmf
)

will be removed.

Returns:

The results of the translation
io.netty.handler.ssl.JdkSslContext.toNegotiator
(ApplicationProtocolConfig
The configuration which defines the translation
config
,
boolean
true if a server false otherwise.
isServer
)

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

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(Provider provider, File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout, String keyStore)

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

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate collection file in PEM format. This provides the certificate collection used for mutual authentication. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from clients. null to use the default or the results of parsing trustCertCollectionFile.
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to clients. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JdkSslServerContext.JdkSslServerContext(File
an X.509 certificate collection file in PEM format. This provides the certificate collection used for mutual authentication. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from clients. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to clients. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.JettyAlpnSslEngine.ClientEngine.ClientEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.JettyAlpnSslEngine.ServerEngine.ServerEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.JettyAlpnSslEngine.newClientEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.JettyAlpnSslEngine.newServerEngine(SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator)

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

io.netty.handler.ssl.JettyNpnSslEngine.JettyNpnSslEngine(SSLEngine engine, final JdkApplicationProtocolNegotiator applicationNegotiator, boolean server)

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

io.netty.handler.ssl.OpenSsl.supportsHostnameValidation()

Will be removed because hostname validation is always done by a javax.net.ssl.TrustManager implementation.

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default..
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default..
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslClientContext.OpenSslClientContext(File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the javax.net.ssl.KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslContext.OpenSslContext(Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, int mode, Certificate[] keyCertChain, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, Map.Entry<SslContextOption<?>, Object>... options)

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

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
TrustManagerFactory trustManagerFactory, Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
ApplicationProtocolConfig
Application protocol config.
config
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
TrustManagerFactory trustManagerFactory, Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
OpenSslApplicationProtocolNegotiator
Application protocol negotiator.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate collection file in PEM format. This provides the certificate collection used for mutual authentication. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from clients. null to use the default or the results of parsing trustCertCollectionFile.
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to clients. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
config
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
TrustManagerFactory trustManagerFactory, Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Application protocol config.
config
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
TrustManagerFactory trustManagerFactory, Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
OpenSslApplicationProtocolNegotiator
Application protocol negotiator.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder}

io.netty.handler.ssl.OpenSslServerContext.OpenSslServerContext(File
an X.509 certificate collection file in PEM format. This provides the certificate collection used for mutual authentication. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from clients. null to use the default or the results of parsing trustCertCollectionFile.
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to clients. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
OpenSslApplicationProtocolNegotiator
Application Protocol Negotiator object
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

use SslContextBuilder

io.netty.handler.ssl.OpenSslServerContext.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. See corresponding docs for further information.

io.netty.handler.ssl.OpenSslSessionCache.NativeSslSession.getPeerCertificateChain()

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

io.netty.handler.ssl.ReferenceCountedOpenSslContext.NONE_PROTOCOL_NEGOTIATOR

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

io.netty.handler.ssl.ReferenceCountedOpenSslContext.ReferenceCountedOpenSslContext(Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, int mode, Certificate[] keyCertChain, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, boolean leakDetection, Map.Entry<SslContextOption<?>, Object>... ctxOptions)

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

io.netty.handler.ssl.ReferenceCountedOpenSslContext.apn

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

io.netty.handler.ssl.ReferenceCountedOpenSslContext.applicationProtocolNegotiator()

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

io.netty.handler.ssl.ReferenceCountedOpenSslContext.context()

this method is considered unsafe as the returned pointer may be released later. Dont use it!

io.netty.handler.ssl.ReferenceCountedOpenSslContext.sslCtxPointer()

this method is considered unsafe as the returned pointer may be released later. Dont use it!

Returns:

The results of the translation
io.netty.handler.ssl.ReferenceCountedOpenSslContext.toNegotiator
(ApplicationProtocolConfig
The configuration which defines the translation
config
)

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

io.netty.handler.ssl.ReferenceCountedOpenSslEngine.DefaultOpenSslSession.getPeerCertificateChain()

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

io.netty.handler.ssl.ReferenceCountedOpenSslEngine.DefaultOpenSslSession.x509PeerCerts

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

io.netty.handler.ssl.ReferenceCountedOpenSslEngine.JAVAX_CERTS_NOT_SUPPORTED

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

io.netty.handler.ssl.ReferenceCountedOpenSslEngine.apn

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

io.netty.handler.ssl.ReferenceCountedOpenSslServerContext.ReferenceCountedOpenSslServerContext(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. See corresponding docs for further information.

io.netty.handler.ssl.SniHandler.SniHandler(DomainNameMapping<? extends SslContext>
the mapping of domain name to SslContext
mapping
)

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

io.netty.handler.ssl.SslContext.applicationProtocolNegotiator()

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

Returns:

A TrustManagerFactory which contains the certificates in certChainFile
io.netty.handler.ssl.SslContext.buildTrustManagerFactory
(File
The certificate file to build from.
certChainFile
,
TrustManagerFactory
The existing TrustManagerFactory that will be used if not null.
trustManagerFactory
)

Returns:

a key specification
io.netty.handler.ssl.SslContext.generateKeySpec
(char[]
characters, if null an unencrypted key is assumed
password
,
byte[]
bytes of the DER encoded private key
key
)

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(File
an X.509 certificate chain file in PEM format
certChainFile
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new client-side SslContext
io.netty.handler.ssl.SslContext.newClientContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile. This parameter is ignored if provider is not SslProvider#JDK.
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile. This parameter is ignored if provider is not SslProvider#JDK.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate chain file in PEM format
certChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

Returns:

a new server-side SslContext
io.netty.handler.ssl.SslContext.newServerContext
(SslProvider
the SslContext implementation to use. null to use the current default one.
provider
,
File
an X.509 certificate collection file in PEM format. This provides the certificate collection used for mutual authentication. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from clients. null to use the default or the results of parsing trustCertCollectionFile. This parameter is ignored if provider is not SslProvider#JDK.
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format
keyFile
,
String
the password of the keyFile. null if it's not password-protected.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to clients. null to use the default or the results of parsing keyCertChainFile and keyFile. This parameter is ignored if provider is not SslProvider#JDK.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers Only required if provider is SslProvider#JDK
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Replaced by SslContextBuilder

io.netty.handler.ssl.SslProtocols.SSL_v2

SSLv2 is no longer secure. Consider using TLS_v1_2 or TLS_v1_3

io.netty.handler.ssl.SslProtocols.SSL_v2_HELLO

SSLv2Hello is no longer secure. Consider using TLS_v1_2 or TLS_v1_3

io.netty.handler.ssl.SslProtocols.SSL_v3

SSLv3 is no longer secure. Consider using TLS_v1_2 or TLS_v1_3

io.netty.handler.ssl.SslProtocols.TLS_v1

TLSv1 is no longer secure. Consider using TLS_v1_2 or TLS_v1_3

io.netty.handler.ssl.SslProtocols.TLS_v1_1

TLSv1.1 is no longer secure. Consider using TLS_v1_2 or TLS_v1_3

io.netty.handler.ssl.util.FingerprintTrustManagerFactory.FingerprintTrustManagerFactory(Iterable<String>
a list of SHA1 fingerprints in hexadecimal form
fingerprints
)

This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory#builder(String) method.

io.netty.handler.ssl.util.FingerprintTrustManagerFactory.FingerprintTrustManagerFactory(String...
a list of SHA1 fingerprints in hexadecimal form
fingerprints
)

This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory#builder(String) method.

io.netty.handler.ssl.util.FingerprintTrustManagerFactory.FingerprintTrustManagerFactory(byte[]...
a list of SHA1 fingerprints
fingerprints
)

This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory#builder(String) method.

io.netty.handler.ssl.util.LazyJavaxX509Certificate

Deprecated as a consequence of X509Certificate being deprecated.

io.netty.handler.ssl.util.LazyJavaxX509Certificate.unwrap()

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

io.netty.handler.ssl.util.LazyJavaxX509Certificate.wrapped

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

io.netty.handler.stream.ChunkedFile.readChunk(ChannelHandlerContext
The context which provides a ByteBufAllocator if buffer allocation is necessary.
ctx
)

Returns:

the fetched chunk. null if there is no data left in the stream. Please note that null does not necessarily mean that the stream has reached at its end. In a slow stream, the next chunk might be unavailable just momentarily.
io.netty.handler.stream.ChunkedInput.readChunk
(ChannelHandlerContext
The context which provides a ByteBufAllocator if buffer allocation is necessary.
ctx
)

Use readChunk(ByteBufAllocator).

Fetches a chunked data from the stream. Once this method returns the last chunk and thus the stream has reached at its end, any subsequent isEndOfInput() call must return true.

io.netty.handler.stream.ChunkedNioFile.readChunk(ChannelHandlerContext
The context which provides a ByteBufAllocator if buffer allocation is necessary.
ctx
)

io.netty.handler.stream.ChunkedNioStream.readChunk(ChannelHandlerContext
The context which provides a ByteBufAllocator if buffer allocation is necessary.
ctx
)

io.netty.handler.stream.ChunkedStream.readChunk(ChannelHandlerContext
The context which provides a ByteBufAllocator if buffer allocation is necessary.
ctx
)

Returns:

the current time to wait (in ms) if needed for Read operation.
io.netty.handler.traffic.TrafficCounter.readTimeToWait
(final long
the recv size
size
,
final long
the traffic limit in bytes per second.
limitTraffic
,
final long
the max time in ms to wait in case of excess of traffic.
maxTime
)

Returns:

the current time to wait (in ms) if needed for Write operation.
io.netty.handler.traffic.TrafficCounter.writeTimeToWait
(final long
the write size
size
,
final long
the traffic limit in bytes per second.
limitTraffic
,
final long
the max time in ms to wait in case of excess of traffic.
maxTime
)