添加加密并MAC 计算接口
This commit is contained in:
parent
a19effccab
commit
cc3391f10e
13
pom.xml
13
pom.xml
@ -24,11 +24,20 @@
|
||||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy</artifactId>
|
||||
<version>2.4.15</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sunyard</groupId>
|
||||
<artifactId>proto</artifactId>
|
||||
<version>1.0-20220905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sunyard</groupId>
|
||||
<artifactId>sydapi4j</artifactId>
|
||||
<version>1.13.20221212</version>
|
||||
<version>1.12.20220915</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
package test;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.sunyard.sge.database.*;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -15,14 +12,14 @@ public class EncryptAndMac {
|
||||
// 路径要以 / 或 \\ 结尾表示目录
|
||||
|
||||
String[] pcipList = {"172.1.41.216", "172.1.41.129"};
|
||||
int[] iportList = {8080, 8889};
|
||||
int[] iportList = {8880, 8889};
|
||||
SydApi api = new SydApi4Database();
|
||||
try {
|
||||
|
||||
api.SYD_Short_Connect_Ex(pcipList, iportList, 1000, 1000);
|
||||
|
||||
// 密钥索引
|
||||
int keyEncIdx = 0;
|
||||
int keyEncIdx = 1;
|
||||
|
||||
int keyMacIdx = 1;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user