Package io.netty.handler.ssl
SSL ·
TLS implementation based on
SSLEngine-
Interface Summary Interface Description ApplicationProtocolAccessor Provides a way to get the application-level protocol name from ALPN or NPN.ApplicationProtocolNegotiator Deprecated. AsyncRunnable CipherSuiteFilter Provides a means to filter the supplied cipher suite based upon the supported and default cipher suites.JdkApplicationProtocolNegotiator Deprecated. JdkApplicationProtocolNegotiator.ProtocolSelectionListener A listener to be notified by which protocol was select by its peer.JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory Factory interface forJdkApplicationProtocolNegotiator.ProtocolSelectionListenerobjects.JdkApplicationProtocolNegotiator.ProtocolSelector Interface to define the role of an application protocol selector in the SSL handshake process.JdkApplicationProtocolNegotiator.ProtocolSelectorFactory Factory interface forJdkApplicationProtocolNegotiator.ProtocolSelectorobjects.JdkApplicationProtocolNegotiator.SslEngineWrapperFactory Abstract factory pattern for wrapping anSSLEngineobject.OpenSslApplicationProtocolNegotiator Deprecated. OpenSslAsyncPrivateKeyMethod OpenSslCertificateCompressionAlgorithm Provides compression and decompression implementations for TLS Certificate Compression (RFC 8879).OpenSslEngineMap OpenSslInternalSession SSLSessionthat is specific to our native implementation.OpenSslKeyMaterial Holds references to the native key-material that is used by OpenSSL.OpenSslPrivateKeyMethod Allow to customize private key signing / decrypting (when using RSA).OpenSslSession SSLSessionsub-type that is used by our native implementation.OpenSslX509TrustManagerWrapper.TrustManagerWrapper PemEncoded A marker interface for PEM encoded values.ReferenceCountedOpenSslEngine.NativeSslException ResumableX509ExtendedTrustManager An interface thatTrustManagerinstances can implement, to be notified of resumed SSL sessions. -
Class Summary Class Description AbstractSniHandler<T> Enables SNI (Server Name Indication) extension for server side SSL.ApplicationProtocolConfig Provides anSSLEngineagnostic way to configure aApplicationProtocolNegotiator.ApplicationProtocolNames Provides a set of protocol names used in ALPN and NPN.ApplicationProtocolNegotiationHandler Configures aChannelPipelinedepending on the application-level protocol negotiation result ofSslHandler.ApplicationProtocolUtil Utility class for application protocol common operations.BouncyCastleAlpnSslEngine BouncyCastleAlpnSslUtils BouncyCastlePemReader Ciphers Cipher suitesCipherSuiteConverter Converts a Java cipher suite string to an OpenSSL cipher suite string and vice versa.CipherSuiteConverter.CachedValue Used to store nullable values in a CHMDefaultOpenSslKeyMaterial DelegatingSslContext Adapter class which allows to wrap anotherSslContextand initSSLEngineinstances.EnhancingX509ExtendedTrustManager Wraps an existingX509ExtendedTrustManagerand enhances theCertificateExceptionthat is thrown because of hostname validation.ExtendedOpenSslSession Delegates all operations to a wrappedOpenSslInternalSessionexcept the methods defined byExtendedSSLSessionitself.GroupsConverter Convert java naming to OpenSSL naming if possible and if not return the original name.IdentityCipherSuiteFilter This class will not do any filtering of ciphers suites.Java7SslParametersUtils Java8SslUtils JdkAlpnApplicationProtocolNegotiator Deprecated. JdkAlpnApplicationProtocolNegotiator.AlpnWrapper JdkAlpnApplicationProtocolNegotiator.FailureWrapper JdkAlpnSslEngine JdkAlpnSslUtils JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory JdkBaseApplicationProtocolNegotiator Common base class forJdkApplicationProtocolNegotiatorclasses to inherit from.JdkBaseApplicationProtocolNegotiator.FailProtocolSelectionListener JdkBaseApplicationProtocolNegotiator.FailProtocolSelector JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelectionListener JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector JdkDefaultApplicationProtocolNegotiator TheJdkApplicationProtocolNegotiatorto use if you do not care about NPN or ALPN and are usingSslProvider.JDK.JdkNpnApplicationProtocolNegotiator Deprecated. JdkSslClientContext Deprecated. JdkSslContext AnSslContextwhich uses JDK's SSL/TLS implementation.JdkSslContext.Defaults JdkSslEngine JdkSslServerContext Deprecated. OpenSsl Tells ifnetty-tcnativeand its OpenSSL support are available.OpenSslCachingKeyMaterialProvider OpenSslKeyMaterialProviderthat will cache theOpenSslKeyMaterialto reduce the overhead of parsing the chain and the key for generation of the material.OpenSslCachingX509KeyManagerFactory Wraps anotherKeyManagerFactoryand caches its chains / certs for an alias for better performance when usingSslProvider.OPENSSLorSslProvider.OPENSSL_REFCNT.OpenSslCertificateCompressionConfig Configuration for TLS1.3 certificate compression extension.OpenSslCertificateCompressionConfig.AlgorithmConfig The configuration for algorithm.OpenSslCertificateCompressionConfig.Builder Builder for anOpenSslCertificateCompressionAlgorithm.OpenSslClientContext A client-sideSslContextwhich uses OpenSSL's SSL/TLS implementation.OpenSslClientSessionCache OpenSslSessionCachethat is used by the client-side.OpenSslClientSessionCache.HostPort Host / Port tuple used to find aOpenSslInternalSessionin the cache.OpenSslContext This class will use a finalizer to ensure native resources are automatically cleaned up.OpenSslContextOption<T> OpenSslDefaultApplicationProtocolNegotiator Deprecated. OpenSslEngine Implements aSSLEngineusing OpenSSL BIO abstractions.OpenSslKeyMaterialManager OpenSslKeyMaterialProvider ProvidesOpenSslKeyMaterialfor a given alias.OpenSslNpnApplicationProtocolNegotiator Deprecated. OpenSslPrivateKey OpenSslServerContext A server-sideSslContextwhich uses OpenSSL's SSL/TLS implementation.OpenSslServerSessionContext OpenSslSessionContextimplementation which offers extra methods which are only useful for the server-side.OpenSslSessionCache SSLSessionCacheimplementation for our native SSL implementation.OpenSslSessionCache.NativeSslSession OpenSslInternalSessionimplementation which wraps the native SSL_SESSION* while in cache.OpenSslSessionContext OpenSSL specificSSLSessionContextimplementation.OpenSslSessionId Represent the session ID used by anOpenSslInternalSession.OpenSslSessionStats Stats exposed by an OpenSSL session context.OpenSslSessionTicketKey Session Ticket KeyOpenSslX509KeyManagerFactory SpecialKeyManagerFactorythat pre-compute the keymaterial used whenSslProvider.OPENSSLorSslProvider.OPENSSL_REFCNTis used and so will improve handshake times and its performance.OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider OpenSslKeyMaterialProviderimplementation that pre-compute theOpenSslKeyMaterialfor all aliases.OpenSslX509KeyManagerFactory.OpenSslKeyStore OpenSslX509TrustManagerWrapper Utility which allows to wrapX509TrustManagerimplementations with the internal implementation used bySSLContextImplthat provides extended verification.OpenSslX509TrustManagerWrapper.UnsafeTrustManagerWrapper OptionalSslHandler OptionalSslHandleris a utility decoder to support both SSL and non-SSL handlers based on the first message received.PemPrivateKey This is a special purpose implementation of aPrivateKeywhich allows the user to pass PEM/PKCS#8 encoded key material straight intoOpenSslContextwithout having to parse and re-encode bytes in Java land.PemReader Reads a PEM file and converts it into a list of DERs so that they are imported into aKeyStoreeasily.PemValue A PEM encoded value.PemX509Certificate This is a special purpose implementation of aX509Certificatewhich allows the user to pass PEM/PKCS#8 encoded data straight intoOpenSslContextwithout having to parse and re-encode bytes in Java land.PseudoRandomFunction This pseudorandom function (PRF) takes as input a secret, a seed, and an identifying label and produces an output of arbitrary length.ReferenceCountedOpenSslClientContext A client-sideSslContextwhich uses OpenSSL's SSL/TLS implementation.ReferenceCountedOpenSslClientContext.ExtendedTrustManagerVerifyCallback ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback ReferenceCountedOpenSslClientContext.OpenSslClientSessionContext ReferenceCountedOpenSslClientContext.TrustManagerVerifyCallback ReferenceCountedOpenSslContext An implementation ofSslContextwhich works with libraries that support the OpenSsl C library API.ReferenceCountedOpenSslContext.AbstractCertificateVerifier ReferenceCountedOpenSslContext.AsyncPrivateKeyMethod ReferenceCountedOpenSslContext.AsyncPrivateKeyMethod.ResultCallbackListener ReferenceCountedOpenSslContext.CompressionAlgorithm ReferenceCountedOpenSslContext.DefaultOpenSslEngineMap ReferenceCountedOpenSslContext.PrivateKeyMethod ReferenceCountedOpenSslEngine Implements aSSLEngineusing OpenSSL BIO abstractions.ReferenceCountedOpenSslServerContext A server-sideSslContextwhich uses OpenSSL's SSL/TLS implementation.ReferenceCountedOpenSslServerContext.ExtendedTrustManagerVerifyCallback ReferenceCountedOpenSslServerContext.OpenSslServerCertificateCallback ReferenceCountedOpenSslServerContext.OpenSslSniHostnameMatcher ReferenceCountedOpenSslServerContext.TrustManagerVerifyCallback ResumptionController ResumptionController.X509ExtendedWrapTrustManager SignatureAlgorithmConverter Converts OpenSSL signature Algorithm names to Java signature Algorithm names.SniCompletionEvent Event that is fired once we did a selection of aSslContextbased on theSNI hostname, which may be because it was successful or there was an error.SniHandler Enables SNI (Server Name Indication) extension for server side SSL.SniHandler.AsyncMappingAdapter SniHandler.Selection SslClientHelloHandler<T> ByteToMessageDecoderwhich allows to be notified once a fullClientHellowas received.SslCloseCompletionEvent Event that is fired once the close_notify was received or if an failure happens before it was received.SslCompletionEvent SslContext A secure socket protocol implementation which acts as a factory forSSLEngineandSslHandler.SslContextBuilder Builder for configuring a new SslContext for creation.SslContextOption<T> ASslContextOptionallows to configure aSslContextin a type-safe way.SslHandler SslHandlerCoalescingBufferQueue Each call to SSL_write will introduce about ~100 bytes of overhead.SslHandshakeCompletionEvent Event that is fired once the SSL handshake is complete, which may be because it was successful or there was an error.SslMasterKeyHandler TheSslMasterKeyHandleris a channel-handler you can include in your pipeline to consume the master key & session identifier for a TLS session.SslMasterKeyHandler.WiresharkSslMasterKeyHandler Record the session identifier and master key to theInternalLoggernamedio.netty.wireshark.SslProtocols SSL/TLS protocolsSslUtils Constants for SSL packets.SupportedCipherSuiteFilter This class will filter all requested ciphers out that are not supported by the currentSSLEngine. -
Enum Summary Enum Description ApplicationProtocolConfig.Protocol Defines which application level protocol negotiation to use.ApplicationProtocolConfig.SelectedListenerFailureBehavior Defines the most common behaviors for the peer which is notified of the selected protocol.ApplicationProtocolConfig.SelectorFailureBehavior Defines the most common behaviors for the peer that selects the application protocol.ClientAuth Indicates the state of theSSLEnginewith respect to client authentication.OpenSslCertificateCompressionConfig.AlgorithmMode The usage mode of theOpenSslCertificateCompressionAlgorithm.ReferenceCountedOpenSslEngine.HandshakeState SslHandler.SslEngineType SslProvider An enumeration of SSL/TLS protocol providers. -
Exception Summary Exception Description NotSslRecordException SpecialSSLExceptionwhich will get thrown if a packet is received that not looks like a TLS/SSL record.OpenSslCertificateException A specialCertificateExceptionwhich allows to specify which error code is included in the SSL Record.ReferenceCountedOpenSslEngine.OpenSslException ReferenceCountedOpenSslEngine.OpenSslHandshakeException SslClosedEngineException SSLExceptionwhich signals that the exception was caused by anSSLEnginewhich was closed already.SslHandshakeTimeoutException SSLHandshakeExceptionthat is used when a handshake failed due a configured timeout.StacklessSSLHandshakeException ASSLHandshakeExceptionthat does not fill in the stack trace.