|
@@ -19,11 +19,13 @@ public class UKeyHelper {
|
|
|
|
|
|
public static String UKEY_MESSAGE = "U盾环境正在初始化";
|
|
|
|
|
|
+ public static String UKEY_API_PASSWORD = "3266297f8519bc7e8107ac0871dd4915";
|
|
|
+
|
|
|
/**
|
|
|
* U盾环境初始化
|
|
|
*/
|
|
|
- public static void slmInitEasy(String apiPsd) throws Exception {
|
|
|
- long result = SSRuntimeEasy.SlmInitEasy(apiPsd);
|
|
|
+ public static void slmInitEasy() throws Exception {
|
|
|
+ long result = SSRuntimeEasy.SlmInitEasy(UKEY_API_PASSWORD);
|
|
|
if (result != ErrorCode.SS_OK) {
|
|
|
SSRuntimeEasy.SlmErrorFormatEasy(result, Language);
|
|
|
// log.warn("SlmInitEasy Fail! {}", msg);
|
|
@@ -155,7 +157,7 @@ public class UKeyHelper {
|
|
|
// System.setProperty("java.library.path",
|
|
|
// "/Users/yin/Desktop/API/mac/Java/lib64/libSSRuntimeEasyJava.dylib");
|
|
|
|
|
|
- UKeyHelper.slmInitEasy("3266297f8519bc7e8107ac0871dd4915");
|
|
|
+ UKeyHelper.slmInitEasy();
|
|
|
|
|
|
System.out.println(UKeyHelper.verifyUKey(100000003L));
|
|
|
} finally {
|