public class SelfSignedSslALPNEngineSource extends Object implements SslEngineSource
| 限定符和类型 | 字段和说明 |
|---|---|
private io.netty.handler.ssl.SslContext |
sslContext |
| 构造器和说明 |
|---|
SelfSignedSslALPNEngineSource(ProxyConfigOptions proxyConfigOptions,
HttpProxyConfigOptions httpProxyConfigOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
SSLEngine |
newSslEngine(io.netty.buffer.ByteBufAllocator alloc)
Returns an
SSLEngine to use for a server connection from. |
SSLEngine |
newSslEngine(io.netty.buffer.ByteBufAllocator alloc,
String peerHost,
int peerPort)
Returns an
SSLEngine to use for a client connection from. |
public SelfSignedSslALPNEngineSource(ProxyConfigOptions proxyConfigOptions, HttpProxyConfigOptions httpProxyConfigOptions)
public SSLEngine newSslEngine(io.netty.buffer.ByteBufAllocator alloc)
SslEngineSourceSSLEngine to use for a server connection from.newSslEngine 在接口中 SslEngineSourcealloc - byte buffer allocatorpublic SSLEngine newSslEngine(io.netty.buffer.ByteBufAllocator alloc, String peerHost, int peerPort)
SslEngineSourceSSLEngine to use for a client connection from.
Note: Peer information is needed to send the server_name extension in handshake with Server Name Indication.
(SNI).newSslEngine 在接口中 SslEngineSourcealloc - byte buffer allocatorpeerHost - to start a client connection to the server.peerPort - to start a client connection to the server.Copyright © 2021 Zodiac. All rights reserved.