sdf api test
This commit is contained in:
@@ -121,6 +121,7 @@ public abstract class DeviceDTO {
|
||||
* 管理端口
|
||||
*/
|
||||
private Integer managePort;
|
||||
private Integer encKeyIdx;
|
||||
/**
|
||||
* 访问凭证
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package sdf;
|
||||
|
||||
import com.sunyard.chsm.enums.ManufacturerModelEnum;
|
||||
import com.sunyard.chsm.sdf.SdfApiService;
|
||||
import com.sunyard.chsm.sdf.SingleSdfApiService;
|
||||
import com.sunyard.chsm.sdf.adapter.SdfApiAdapterFactory;
|
||||
@@ -30,7 +31,7 @@ public class SdfApiServiceTest {
|
||||
private final static String ip1 = "172.16.18.41";
|
||||
private final static int port = 8889;
|
||||
private static final SdfApiService bcService = new SingleSdfApiService(SdfApiAdapterFactory.getBcAdapter());
|
||||
private static final SdfApiService sdfService = new SingleSdfApiService(SdfApiAdapterFactory.getProxyRcpAdapter(ip1, port));
|
||||
private static final SdfApiService sdfService = new SingleSdfApiService(SdfApiAdapterFactory.newInstance(ManufacturerModelEnum.enc001.getModel(), ip1, port));
|
||||
|
||||
private static EccPubKey pubKey;
|
||||
private static EccPriKey priKey;
|
||||
|
||||
Reference in New Issue
Block a user