public abstract class DelegatingSslContext extends SslContext
SslContext
and init SSLEngine
instances.Modifier | Constructor and Description |
---|---|
protected |
DelegatingSslContext(SslContext ctx) |
Modifier and Type | Method and Description |
---|---|
ApplicationProtocolNegotiator |
applicationProtocolNegotiator()
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
|
List<String> |
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 . |
boolean |
isClient()
Returns the
true if and only if this context is for client-side. |
SSLEngine |
newEngine(ByteBufAllocator alloc)
Creates a new
SSLEngine . |
SSLEngine |
newEngine(ByteBufAllocator alloc,
String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
protected SslHandler |
newHandler(ByteBufAllocator alloc,
boolean startTls)
Create a new SslHandler.
|
protected SslHandler |
newHandler(ByteBufAllocator alloc,
boolean startTls,
Executor executor)
Create a new SslHandler.
|
protected SslHandler |
newHandler(ByteBufAllocator alloc,
String peerHost,
int peerPort,
boolean startTls)
Create a new SslHandler.
|
protected SslHandler |
newHandler(ByteBufAllocator alloc,
String peerHost,
int peerPort,
boolean startTls,
Executor executor) |
long |
sessionCacheSize()
Returns the size of the cache used for storing SSL session objects.
|
SSLSessionContext |
sessionContext()
Returns the
SSLSessionContext object held by this context. |
long |
sessionTimeout()
Returns the timeout for the cached SSL session objects, in seconds.
|
attributes, buildKeyManagerFactory, buildKeyStore, buildTrustManagerFactory, buildTrustManagerFactory, buildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocols, toPrivateKey, toPrivateKey, toX509Certificates, toX509Certificates
protected DelegatingSslContext(SslContext ctx)
public final boolean isClient()
SslContext
true
if and only if this context is for client-side.isClient
in class SslContext
public final List<String> cipherSuites()
SslContext
cipherSuites
in class SslContext
public final long sessionCacheSize()
SslContext
sessionCacheSize
in class SslContext
public final long sessionTimeout()
SslContext
sessionTimeout
in class SslContext
public final ApplicationProtocolNegotiator applicationProtocolNegotiator()
SslContext
applicationProtocolNegotiator
in class SslContext
public final SSLEngine newEngine(ByteBufAllocator alloc)
SslContext
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 SslContext.newHandler(ByteBufAllocator)
.
newEngine
in class SslContext
SSLEngine
public final SSLEngine newEngine(ByteBufAllocator alloc, String peerHost, int peerPort)
SslContext
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 SslContext.newHandler(ByteBufAllocator, String, int)
.
newEngine
in class SslContext
peerHost
- the non-authoritative name of the hostpeerPort
- the non-authoritative portSSLEngine
protected final SslHandler newHandler(ByteBufAllocator alloc, boolean startTls)
SslContext
newHandler
in class SslContext
SslContext.newHandler(ByteBufAllocator)
protected final SslHandler newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls)
SslContext
newHandler
in class SslContext
SslContext.newHandler(ByteBufAllocator, String, int, boolean, Executor)
protected SslHandler newHandler(ByteBufAllocator alloc, boolean startTls, Executor executor)
SslContext
newHandler
in class SslContext
SslContext.newHandler(ByteBufAllocator, String, int, boolean, Executor)
protected SslHandler newHandler(ByteBufAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)
newHandler
in class SslContext
public final SSLSessionContext sessionContext()
SslContext
SSLSessionContext
object held by this context.sessionContext
in class SslContext
protected void initHandler(SslHandler handler)
SslHandler
. This will by default call initEngine(SSLEngine)
, sub-classes may override
this.Copyright © 2008–2024 The Netty Project. All rights reserved.