public interface SslContext
PipeLayer| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeSSL()
switch to no encryption, there is keep connect, close SSL.
|
String |
getApplicationProtocol()
Returns the name of the negotiated application-level protocol.
|
SslConfig |
getConfig()
return ssl config.
|
String |
getPeerHost()
Returns the host name of the peer of this session.
|
int |
getPeerPort()
Returns the host name of the peer of this session.
|
boolean |
isClient()
SSL Client side
|
boolean |
isServer()
SSL server side
|
void |
openSSL()
switch to encryption, there is keep connect, close SSL.
|
SslConfig getConfig()
boolean isServer()
boolean isClient()
String getApplicationProtocol()
null if the negotiation failed or the client does not have ALPN/NPN extensionString getPeerHost()
int getPeerPort()
void closeSSL()
void openSSL()
Copyright © 2022–2024. All rights reserved.