| 程序包 | 说明 |
|---|---|
| cn.tdchain.cipher | |
| cn.tdchain.jbcc | |
| cn.tdchain.jbcc.net.nio |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
DataCipher.getData(String privateKey,
Cipher cipher)
Description: 使用私钥进行解密得出明文
|
boolean |
DataCipher.verify(String senderPublicKey,
Cipher cipher)
Description: 对信息进行验签
|
| 构造器和说明 |
|---|
DataCipher(String passwd,
String data,
String privateKey,
String publicKey,
Cipher cipher)
数字密钥:使用公钥对数据加密,在网络上传输保证安全。
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Cipher |
ConnectionFactory.cipher |
protected Cipher |
Connection.cipher |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
Connection.openNet(String[] ipArr,
int port,
String token,
Cipher cipher) |
| 构造器和说明 |
|---|
Connection(String[] ipTable,
int port,
Key key,
String token,
Cipher cipher) |
Connection(String[] ipTable,
int port,
Key key,
String token,
Cipher cipher,
long timeout) |
Connection(String[] ipArr,
int port,
String token,
long timeout,
String ksPath,
String ksPasswd,
Cipher cipher)
DEFAULT_TIMEOUT
|
Connection(String[] ipArr,
int port,
String token,
String ksPath,
String ksPasswd,
Cipher cipher)
Description: 客户端构造器 , 默认超时为 DEFAULT_TIMEOUT
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cipher |
NioResphone.getCipher() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NioResphone.setCipher(Cipher cipher) |
| 构造器和说明 |
|---|
NioNet(String[] iptables,
int serverPort,
Cipher cipher,
String token,
Key key,
String connectionId) |
NioRequest(NioNet.NioTask task,
String serverHost,
int serverPort,
Cipher cipher,
String token,
Key key,
String connectionId,
int workerNum,
String serverPublicKey) |
NioResphone(NioNet.NioTask task,
String serverIp,
String connectionId,
Key key,
Cipher cipher,
int workerNum,
String serverPublicKey) |
NioTask(String serverHost,
int serverPort,
Cipher cipher,
String token,
Key key,
String connectionId,
int workerNum) |
Copyright © 2020. All Rights Reserved.