replace auth

This commit is contained in:
zhongchao
2021-11-19 21:23:41 +08:00
parent 501dac9e55
commit 33d97832ac
2 changed files with 1 additions and 9 deletions

View File

@@ -1,13 +1,11 @@
package com.mogo.cloud.socket.third.core;
import static com.mogo.cloud.socket.third.core.SocketConstants.DEFAULT_AUTH_ORIGIN_PUB_KEY;
import static com.mogo.cloud.socket.third.core.SocketConstants.DEFAULT_AUTH_PUB_KEY;
import android.content.Context;
import android.text.TextUtils;
import com.mogo.cloud.TelephoneUtil;
import com.mogo.cloud.passport.MoGoAiCloudClientConfig;
import com.zhidao.ptech.connsvr.commom.protocol.MogoCommon;
public class SocketConfig {
@@ -139,11 +137,7 @@ public class SocketConfig {
public String getAuthPubKey() {
if (TextUtils.isEmpty(authPubKey)) {
if (MoGoAiCloudClientConfig.getInstance().isUseOriginSocket()) {
authPubKey = DEFAULT_AUTH_ORIGIN_PUB_KEY;
} else {
authPubKey = DEFAULT_AUTH_PUB_KEY;
}
authPubKey = DEFAULT_AUTH_ORIGIN_PUB_KEY;
}
return authPubKey;
}

View File

@@ -17,8 +17,6 @@ public interface SocketConstants {
/*unit is ms*/
long ONE_MINUTE = 60 * ONE_SECOND;
String DEFAULT_AUTH_PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1En+aK8zhDRI2495gwmFYuIAHJxFV8MQuBWSY+xRJMtNq6UITx72NgfMWxmxzoxrvv6T1mb3HMVpIto1H3mliPg9LbZ48GAuDRWXHxLxNR69W45okhGAkDxU1GmlRPzEplwwfbar5Bdv3Bd24ABpGQhzozfEK5T5Ej9KrT/a7YwIDAQAB";
String DEFAULT_AUTH_ORIGIN_PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLe57ORPgOnBrcWmGac3esB4PtIyI0rAHiyk5QoCRTnTyanwWLfstu7mz2MSHD3YuveNWDiIY8vtRvFNE4M/yA7eb4Mct01VKhKFI/JqwyXgNaSh5YCfmv0vg9687c7IUjTEAg+ReC/bSLDqEB3a0vuP95Txtj9smMlx1e37XFYQIDAQAB";
}