public class SslService extends Object
| Constructor and Description |
|---|
SslService(boolean isClient,
ClientAuth clientAuth) |
| Modifier and Type | Method and Description |
|---|---|
void |
doHandshake(HandshakeModel handshakeModel)
纯异步实现的SSL握手,
在执行doHandshake期间必须保证当前通道无数据读写正在执行。
若触发了数据读写,也应立马终止doHandshake方法
|
void |
initKeyStore(InputStream keyStoreInputStream,
String keyStorePassword,
String keyPassword) |
void |
initTrust(InputStream trustInputStream,
String trustPassword) |
public SslService(boolean isClient,
ClientAuth clientAuth)
public void initKeyStore(InputStream keyStoreInputStream, String keyStorePassword, String keyPassword)
public void initTrust(InputStream trustInputStream, String trustPassword)
public void doHandshake(HandshakeModel handshakeModel)
handshakeModel - 握手模式Copyright © 2021. All rights reserved.