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

public abstract Class DelegatingSslContext

extends SslContext
Class Inheritance
Imports
io.netty5.buffer.BufferAllocator, javax.net.ssl.SSLEngine, .SSLSessionContext, java.util.List, java.util.concurrent.Executor

Adapter class which allows to wrap another SslContext and init SSLEngine instances.

Field Summary

Modifier and TypeField and Description
private final SslContext
Inherited from io.netty5.handler.ssl.SslContext:
ALIASX509_CERT_FACTORY

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final ApplicationProtocolNegotiator
applicationProtocolNegotiator()

Implements abstract io.netty5.handler.ssl.SslContext.applicationProtocolNegotiator.

Deprecated as a consequence of ApplicationProtocolNegotiator being deprecated.
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
public final List<String>
cipherSuites()

Implements abstract io.netty5.handler.ssl.SslContext.cipherSuites.

Returns the list of enabled cipher suites, in the order of preference.
protected abstract void
initEngine(SSLEngine engine)

Init the SSLEngine.

protected void
initHandler(SslHandler handler)

Init the SslHandler.

public final boolean
isClient()

Implements abstract io.netty5.handler.ssl.SslContext.isClient.

Returns the true if and only if this context is for client-side.
public final SSLEngine
public final SSLEngine
newEngine(BufferAllocator alloc, String
the non-authoritative name of the host
peerHost
,
int
the non-authoritative port
peerPort
)

Implements abstract io.netty5.handler.ssl.SslContext.newEngine.

Creates a new SSLEngine using advisory peer information.
protected final SslHandler
newHandler(BufferAllocator alloc, boolean startTls)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

Create a new SslHandler.
protected final SslHandler
newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

Create a new SslHandler.
protected SslHandler
newHandler(BufferAllocator alloc, boolean startTls, Executor executor)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

Create a new SslHandler.
protected SslHandler
newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

public final long
sessionCacheSize()

Overrides io.netty5.handler.ssl.SslContext.sessionCacheSize.

Returns the size of the cache used for storing SSL session objects.
public final SSLSessionContext
sessionContext()

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

Returns the SSLSessionContext object held by this context.
public final long
sessionTimeout()

Overrides io.netty5.handler.ssl.SslContext.sessionTimeout.

Returns the timeout for the cached SSL session objects, in seconds.
Inherited from io.netty5.handler.ssl.SslContext:
attributesbuildKeyManagerFactorybuildKeyManagerFactorybuildKeyStorebuildTrustManagerFactorybuildTrustManagerFactorybuildTrustManagerFactorydefaultClientProviderdefaultServerProvidergenerateKeySpecisServerkeyStorePasswordnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextnewClientContextInternalnewHandlernewHandlernewHandlernewHandlernewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextnewServerContextInternalnextProtocolstoApplicationProtocolConfigtoPrivateKeytoPrivateKeytoPrivateKeyInternaltoX509CertificatestoX509CertificatestoX509CertificatesInternal

Field Detail

ctxback to summary
private final SslContext ctx

Constructor Detail

DelegatingSslContextback to summary
protected DelegatingSslContext(SslContext ctx)

Method Detail

applicationProtocolNegotiatorback to summary
public final ApplicationProtocolNegotiator applicationProtocolNegotiator()

Implements abstract io.netty5.handler.ssl.SslContext.applicationProtocolNegotiator.

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

Deprecated

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

Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.

Annotations
@Override
cipherSuitesback to summary
public final List<String> cipherSuites()

Implements abstract io.netty5.handler.ssl.SslContext.cipherSuites.

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

Returns the list of enabled cipher suites, in the order of preference.

Annotations
@Override
initEngineback to summary
protected abstract void initEngine(SSLEngine engine)

Init the SSLEngine.

initHandlerback to summary
protected void initHandler(SslHandler handler)

Init the SslHandler. This will by default call initEngine(SSLEngine), sub-classes may override this.

isClientback to summary
public final boolean isClient()

Implements abstract io.netty5.handler.ssl.SslContext.isClient.

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

Returns the true if and only if this context is for client-side.

Annotations
@Override
newEngineback to summary
public final SSLEngine newEngine(BufferAllocator alloc)

Implements abstract io.netty5.handler.ssl.SslContext.newEngine.

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

Creates a new SSLEngine.

If SslProvider#OPENSSL_REFCNT is used then the object must be released. One way to do this is to wrap in a SslHandler and insert it into a pipeline. See newHandler(BufferAllocator).

Returns:SSLEngine

a new SSLEngine

Annotations
@Override
newEngineback to summary
public final SSLEngine newEngine(BufferAllocator alloc, String peerHost, int peerPort)

Implements abstract io.netty5.handler.ssl.SslContext.newEngine.

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

Creates a new SSLEngine using advisory peer information.

If SslProvider#OPENSSL_REFCNT is used then the object must be released. One way to do this is to wrap in a SslHandler and insert it into a pipeline. See newHandler(BufferAllocator, String, int).

Parameters
peerHost:String

the non-authoritative name of the host

peerPort:int

the non-authoritative port

Returns:SSLEngine

a new SSLEngine

Annotations
@Override
newHandlerback to summary
protected final SslHandler newHandler(BufferAllocator alloc, boolean startTls)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

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

Create a new SslHandler.

Annotations
@Override
newHandlerback to summary
protected final SslHandler newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

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

Create a new SslHandler.

Annotations
@Override
newHandlerback to summary
protected SslHandler newHandler(BufferAllocator alloc, boolean startTls, Executor executor)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

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

Create a new SslHandler.

Annotations
@Override
newHandlerback to summary
protected SslHandler newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)

Overrides io.netty5.handler.ssl.SslContext.newHandler.

Annotations
@Override
sessionCacheSizeback to summary
public final long sessionCacheSize()

Overrides io.netty5.handler.ssl.SslContext.sessionCacheSize.

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

Returns the size of the cache used for storing SSL session objects.

Annotations
@Override
sessionContextback to summary
public final SSLSessionContext sessionContext()

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

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

Returns the SSLSessionContext object held by this context.

Annotations
@Override
sessionTimeoutback to summary
public final long sessionTimeout()

Overrides io.netty5.handler.ssl.SslContext.sessionTimeout.

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

Returns the timeout for the cached SSL session objects, in seconds.

Annotations
@Override