|
|
@ -115,7 +115,7 @@ public class ApiSignUtil { |
|
|
"platform_public_key, platform_private_key, caller_public_key, " + |
|
|
"platform_public_key, platform_private_key, caller_public_key, " + |
|
|
"sign_enabled, encrypt_enabled, ip_whitelist_enabled, ip_whitelist, " + |
|
|
"sign_enabled, encrypt_enabled, ip_whitelist_enabled, ip_whitelist, " + |
|
|
"status, create_time) VALUES (\n" + |
|
|
"status, create_time) VALUES (\n" + |
|
|
" 'CIM大屏', 'CIM', '" + appKey + "', '" + appSecret + "',\n" + |
|
|
" '龙岗区', 'longgang', '" + appKey + "', '" + appSecret + "',\n" + |
|
|
" '" + platformPublicKey + "',\n" + |
|
|
" '" + platformPublicKey + "',\n" + |
|
|
" '" + platformPrivateKey + "',\n" + |
|
|
" '" + platformPrivateKey + "',\n" + |
|
|
" '" + callerPublicKey + "',\n" + |
|
|
" '" + callerPublicKey + "',\n" + |
|
|
@ -127,11 +127,11 @@ public class ApiSignUtil { |
|
|
System.out.println(); |
|
|
System.out.println(); |
|
|
System.out.println("=== 密钥信息(交给调用方) ==="); |
|
|
System.out.println("=== 密钥信息(交给调用方) ==="); |
|
|
System.out.println("app_key: " + appKey); |
|
|
System.out.println("app_key: " + appKey); |
|
|
System.out.println("app_secret: " + appSecret + " (HMAC签名用)"); |
|
|
System.out.println("app_secret: " + appSecret); |
|
|
System.out.println("platformPublicKey: " + platformPublicKey + " (加密请求用)"); |
|
|
System.out.println("platformPublicKey: " + platformPublicKey); |
|
|
System.out.println(); |
|
|
System.out.println(); |
|
|
System.out.println("=== 调用方密钥(自行保管,勿泄露) ==="); |
|
|
System.out.println("=== 调用方私钥(自行保管,勿泄露) ==="); |
|
|
System.out.println("callerPrivateKey: " + callerPrivateKey + " (解密响应用)"); |
|
|
System.out.println("callerPrivateKey: " + callerPrivateKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|