public abstract static class JdkApplicationProtocolNegotiator.AllocatorAwareSslEngineWrapperFactory extends java.lang.Object implements JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
Constructor and Description |
---|
AllocatorAwareSslEngineWrapperFactory() |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.SSLEngine |
wrapSslEngine(javax.net.ssl.SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
用于包装
SSLEngine 对象的抽象工厂模式。
|
public final javax.net.ssl.SSLEngine wrapSslEngine(javax.net.ssl.SSLEngine engine, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer)
SSLEngine
对象。
这对于NPN / APLN支持很有用。
wrapSslEngine
在界面
JdkApplicationProtocolNegotiator.SslEngineWrapperFactory
engine
- 要包装的发动机。
applicationNegotiator
- 应用程序级协议谈判者
isServer
-
true
如果引擎是用于服务器端的连接 false
如果引擎是为客户端连接的 engine
。
Copyright © 2008–2018 The Netty Project. All rights reserved.