public abstract class DelegatingSslContext extends SslContext
SslContext and init SSLEngine instances.| 限定符 | 构造器和说明 |
|---|---|
protected |
DelegatingSslContext(SslContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApplicationProtocolNegotiator |
applicationProtocolNegotiator()
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
|
java.util.List<java.lang.String> |
cipherSuites()
Returns the list of enabled cipher suites, in the order of preference.
|
protected abstract void |
initEngine(javax.net.ssl.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. |
javax.net.ssl.SSLEngine |
newEngine(ByteBufAllocator alloc)
Creates a new
SSLEngine. |
javax.net.ssl.SSLEngine |
newEngine(ByteBufAllocator alloc,
java.lang.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,
java.util.concurrent.Executor executor)
Create a new SslHandler.
|
protected SslHandler |
newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls)
Create a new SslHandler.
|
protected SslHandler |
newHandler(ByteBufAllocator alloc,
java.lang.String peerHost,
int peerPort,
boolean startTls,
java.util.concurrent.Executor executor) |
long |
sessionCacheSize()
Returns the size of the cache used for storing SSL session objects.
|
javax.net.ssl.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, toX509Certificatesprotected DelegatingSslContext(SslContext ctx)
public final boolean isClient()
SslContexttrue if and only if this context is for client-side.isClient 在类中 SslContextpublic final java.util.List<java.lang.String> cipherSuites()
SslContextcipherSuites 在类中 SslContextpublic final long sessionCacheSize()
SslContextsessionCacheSize 在类中 SslContextpublic final long sessionTimeout()
SslContextsessionTimeout 在类中 SslContextpublic final ApplicationProtocolNegotiator applicationProtocolNegotiator()
SslContextapplicationProtocolNegotiator 在类中 SslContextpublic final javax.net.ssl.SSLEngine newEngine(ByteBufAllocator alloc)
SslContextSSLEngine.
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 在类中 SslContextSSLEnginepublic final javax.net.ssl.SSLEngine newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
SslContextSSLEngine 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 在类中 SslContextpeerHost - the non-authoritative name of the hostpeerPort - the non-authoritative portSSLEngineprotected final SslHandler newHandler(ByteBufAllocator alloc, boolean startTls)
SslContextnewHandler 在类中 SslContextSslContext.newHandler(ByteBufAllocator)protected final SslHandler newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls)
SslContextprotected SslHandler newHandler(ByteBufAllocator alloc, boolean startTls, java.util.concurrent.Executor executor)
SslContextprotected SslHandler newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls, java.util.concurrent.Executor executor)
newHandler 在类中 SslContextpublic final javax.net.ssl.SSLSessionContext sessionContext()
SslContextSSLSessionContext object held by this context.sessionContext 在类中 SslContextprotected abstract void initEngine(javax.net.ssl.SSLEngine engine)
SSLEngine.protected void initHandler(SslHandler handler)
SslHandler. This will by default call initEngine(SSLEngine), sub-classes may override
this.