|
|
@@ -40,12 +40,9 @@ import javax.crypto.spec.SecretKeySpec;
|
|
|
public class GenerateTestUserSig {
|
|
|
|
|
|
/**
|
|
|
- * Tencent Cloud SDKAppID. Set it to the SDKAppID of your account.
|
|
|
- * <p>
|
|
|
- * You can view your `SDKAppId` after creating an application in the [Tencent Cloud IM console](https://console.cloud.tencent.com/avc).
|
|
|
- * SDKAppID uniquely identifies a Tencent Cloud account.
|
|
|
+ * 这里配置 SDKAppID
|
|
|
*/
|
|
|
- public static final int SDKAppID = 20022983;
|
|
|
+ public static final int SDKAppID = 0;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -57,19 +54,9 @@ public class GenerateTestUserSig {
|
|
|
private static final int EXPIRE_TIME = 604800;
|
|
|
|
|
|
/**
|
|
|
- * Follow the steps below to obtain the key required for UserSig calculation.
|
|
|
- * <p>
|
|
|
- * Step 1. Log in to the [IM console](https://console.cloud.tencent.com/avc). If you don't have an application yet, create one.
|
|
|
- * Step 2. Click your application and find “Basic Information”.
|
|
|
- * Step 3. Click “Display Key” to view the key used for UserSig calculation.
|
|
|
- * Copy and paste the key to the variable below.
|
|
|
- * <p>
|
|
|
- * Note: This method is for testing only. Before commercial launch,
|
|
|
- * please migrate the UserSig calculation code and key to your backend server
|
|
|
- * to prevent key disclosure and traffic stealing.
|
|
|
- * Documentation: https://cloud.tencent.com/document/product/269/32688#Server
|
|
|
+ * 这里配置 SDKSecretKey
|
|
|
*/
|
|
|
- private static final String SDKSecretKey = "4633790f7ff861636fbc64b20936d6aeeee25613446d2cd0b37b714d2307dec1";
|
|
|
+ private static final String SDKSecretKey = "";
|
|
|
|
|
|
/**
|
|
|
* Calculating UserSig
|