public interface SslEngineSource
SSLEngine.| 限定符和类型 | 方法和说明 |
|---|---|
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. |
SSLEngine newSslEngine(io.netty.buffer.ByteBufAllocator alloc)
SSLEngine to use for a server connection from.alloc - byte buffer allocatorSSLEngine newSslEngine(io.netty.buffer.ByteBufAllocator alloc, String peerHost, int peerPort)
SSLEngine 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).alloc - 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.