public abstract class DelegatingSslContext extends SslContext
SslContext和init SSLEngine实例的适配器类。
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingSslContext(SslContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationProtocolNegotiator |
applicationProtocolNegotiator()
返回负责协商TLS NPN / ALPN扩展的应用层协议的对象。
|
java.util.List<java.lang.String> |
cipherSuites()
按优先顺序返回启用的密码套件列表。
|
protected abstract void |
initEngine(javax.net.ssl.SSLEngine engine)
初始化
SSLEngine 。
|
protected void |
initHandler(SslHandler handler)
初始化 SslHandler 。
|
boolean |
isClient()
当且仅当此上下文用于客户端时才返回
true 。
|
javax.net.ssl.SSLEngine |
newEngine(ByteBufAllocator alloc)
创建一个新的
SSLEngine 。
|
javax.net.ssl.SSLEngine |
newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
使用咨询对等信息创建新的
SSLEngine 。
|
protected SslHandler |
newHandler(ByteBufAllocator alloc, boolean startTls)
创建一个新的SslHandler。
|
protected SslHandler |
newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls)
创建一个新的SslHandler。
|
long |
sessionCacheSize()
返回用于存储SSL会话对象的缓存大小。
|
javax.net.ssl.SSLSessionContext |
sessionContext()
返回此上下文拥有的
SSLSessionContext对象。
|
long |
sessionTimeout()
以秒为单位返回缓存的SSL会话对象的超时时间。
|
buildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocolsprotected DelegatingSslContext(SslContext ctx)
public final boolean isClient()
SslContext
true 。
isClient在课堂上
SslContext
public final java.util.List<java.lang.String> cipherSuites()
SslContext
cipherSuites在课堂上
SslContext
public final long sessionCacheSize()
SslContext
sessionCacheSize在类
SslContext
public final long sessionTimeout()
SslContext
sessionTimeout在课堂上
SslContext
public final ApplicationProtocolNegotiator applicationProtocolNegotiator()
SslContext
applicationProtocolNegotiator在课堂上
SslContext
public final javax.net.ssl.SSLEngine newEngine(ByteBufAllocator alloc)
SslContext
SSLEngine 。
如果使用SslProvider.OPENSSL_REFCNT,则必须释放该对象。 一种方法是将SslHandler封装到管道中。 见SslContext.newHandler(ByteBufAllocator) 。
newEngine在课堂上
SslContext
SSLEngine
public final javax.net.ssl.SSLEngine newEngine(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort)
SslContext
SSLEngine 。
如果使用SslProvider.OPENSSL_REFCNT,则必须释放该对象。 一种方法是将SslHandler包装并将其插入管道中。 见SslContext.newHandler(ByteBufAllocator, String, int) 。
newEngine在课堂上
SslContext
peerHost - 主机的非权威名称
peerPort - 非权威的港口
SSLEngine
protected final SslHandler newHandler(ByteBufAllocator alloc, boolean startTls)
SslContext
newHandler在课堂上
SslContext
SslContext.newHandler(ByteBufAllocator)
protected final SslHandler newHandler(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean startTls)
SslContext
public final javax.net.ssl.SSLSessionContext sessionContext()
SslContext
SSLSessionContext对象。
sessionContext在课程
SslContext
protected abstract void initEngine(javax.net.ssl.SSLEngine engine)
SSLEngine 。
protected void initHandler(SslHandler handler)
SslHandler 。
这将默认调用initEngine(SSLEngine) ,子类可能会覆盖此。
Copyright © 2008–2018 The Netty Project. All rights reserved.