public class JdkSslContext extends SslContextBasic
SslContext which uses JDK's SSL/TLS implementation.
refer to `io.netty.handler.ssl.JdkSslContext` implementation| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
PROTOCOL |
channelID, netLog, pipeContext, soContext, sslConfig, sslLog, sslMode, sslStatus| 构造器和说明 |
|---|
JdkSslContext(long channelID,
PipeContext context,
SslConfig config,
boolean clientMode) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected SSLEngine |
configSslEngine(SSLContext sslContext,
SSLEngine sslEngine)
create SSLEngine
|
protected SSLContext |
createSSLContext()
create SSLContext
|
String |
getApplicationProtocol()
Returns the name of the negotiated application-level protocol.
|
closeSSL, createKeyManagerFactory, createKeyStore, getConfig, getEngine, getPeerHost, getPeerPort, getTrustManagers, handRcv, handSnd, isClient, isServer, openSSLpublic JdkSslContext(long channelID,
PipeContext context,
SslConfig config,
boolean clientMode)
throws Exception
Exceptionpublic String getApplicationProtocol()
SslContextnull if the negotiation failed or the client does not have ALPN/NPN extensionprotected SSLContext createSSLContext() throws GeneralSecurityException, IOException
SslContextBasicprotected SSLEngine configSslEngine(SSLContext sslContext, SSLEngine sslEngine)
SslContextBasicconfigSslEngine 在类中 SslContextBasicCopyright © 2022–2024. All rights reserved.