@@ -374,8 +374,8 @@ private void doEncryptConfigEntryQueryWork() throws Exception {
374374 }
375375 if (result .getF0 () == null ) {
376376 if (this .userEncryptConfigEntry != null ) {
377- logger .warn ("ConfigManager({}) connect manager({}) failure, using the last pubKey, secretId ={}" ,
378- this .callerId , this .encryptConfigVisitUrl , this .clientConfig .getAuthSecretId ());
377+ logger .warn ("ConfigManager({}) connect manager({}) failure, using the last pubKey, userName ={}" ,
378+ this .callerId , this .encryptConfigVisitUrl , this .clientConfig .getUserName ());
379379 return ;
380380 }
381381 throw new Exception ("Visit manager error:" + result .getF1 ());
@@ -570,8 +570,8 @@ private Tuple2<EncryptConfigEntry, String> requestPubKeyFromManager() {
570570 pubKeyConf = JsonParser .parseString (queryResult .getF1 ()).getAsJsonObject ();
571571 } catch (Throwable ex ) {
572572 if (parseCounter .shouldPrint ()) {
573- logger .warn ("ConfigManager({}) parse failure, secretId ={}, config={}!" ,
574- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
573+ logger .warn ("ConfigManager({}) parse failure, userName ={}, config={}!" ,
574+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
575575 }
576576 errorMsg = "parse pubkey failure:" + ex .getMessage ();
577577 bookManagerQryFailStatus (false , errorMsg );
@@ -585,23 +585,23 @@ private Tuple2<EncryptConfigEntry, String> requestPubKeyFromManager() {
585585 try {
586586 if (!pubKeyConf .has ("resultCode" )) {
587587 if (parseCounter .shouldPrint ()) {
588- logger .warn ("ConfigManager({}) config failure: resultCode field not exist, secretId ={}, config={}!" ,
589- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
588+ logger .warn ("ConfigManager({}) config failure: resultCode field not exist, userName ={}, config={}!" ,
589+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
590590 }
591591 throw new Exception ("resultCode field not exist" );
592592 }
593593 int resultCode = pubKeyConf .get ("resultCode" ).getAsInt ();
594594 if (resultCode != 0 ) {
595595 if (parseCounter .shouldPrint ()) {
596- logger .warn ("ConfigManager({}) config failure: resultCode != 0, secretId ={}, config={}!" ,
597- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
596+ logger .warn ("ConfigManager({}) config failure: resultCode != 0, userName ={}, config={}!" ,
597+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
598598 }
599599 throw new Exception ("resultCode != 0!" );
600600 }
601601 if (!pubKeyConf .has ("resultData" )) {
602602 if (parseCounter .shouldPrint ()) {
603- logger .warn ("ConfigManager({}) config failure: resultData field not exist, secretId ={}, config={}!" ,
604- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
603+ logger .warn ("ConfigManager({}) config failure: resultData field not exist, userName ={}, config={}!" ,
604+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
605605 }
606606 throw new Exception ("resultData field not exist" );
607607 }
@@ -610,24 +610,24 @@ private Tuple2<EncryptConfigEntry, String> requestPubKeyFromManager() {
610610 String publicKey = resultData .get ("publicKey" ).getAsString ();
611611 if (StringUtils .isBlank (publicKey )) {
612612 if (parseCounter .shouldPrint ()) {
613- logger .warn ("ConfigManager({}) config failure: publicKey is blank, secretId ={}, config={}!" ,
614- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
613+ logger .warn ("ConfigManager({}) config failure: publicKey is blank, userName ={}, config={}!" ,
614+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
615615 }
616616 throw new Exception ("publicKey is blank!" );
617617 }
618618 String username = resultData .get ("username" ).getAsString ();
619619 if (StringUtils .isBlank (username )) {
620620 if (parseCounter .shouldPrint ()) {
621- logger .warn ("ConfigManager({}) config failure: username is blank, secretId ={}, config={}!" ,
622- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
621+ logger .warn ("ConfigManager({}) config failure: username is blank, userName ={}, config={}!" ,
622+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
623623 }
624624 throw new Exception ("username is blank!" );
625625 }
626626 String versionStr = resultData .get ("version" ).getAsString ();
627627 if (StringUtils .isBlank (versionStr )) {
628628 if (parseCounter .shouldPrint ()) {
629- logger .warn ("ConfigManager({}) config failure: version is blank, secretId ={}, config={}!" ,
630- this .callerId , this .clientConfig .getAuthSecretId (), queryResult .getF1 ());
629+ logger .warn ("ConfigManager({}) config failure: version is blank, userName ={}, config={}!" ,
630+ this .callerId , this .clientConfig .getUserName (), queryResult .getF1 ());
631631 }
632632 throw new Exception ("version is blank!" );
633633 }
@@ -670,8 +670,8 @@ private Tuple2<EncryptConfigEntry, String> readCachedPubKeyEntry() {
670670 }
671671 } catch (Throwable ex ) {
672672 if (exptCounter .shouldPrint ()) {
673- logger .warn ("ConfigManager({}) read({}) file exception, secretId ={}" ,
674- callerId , encryptConfigCacheFile , clientConfig .getAuthSecretId (), ex );
673+ logger .warn ("ConfigManager({}) read({}) file exception, userName ={}" ,
674+ callerId , encryptConfigCacheFile , clientConfig .getUserName (), ex );
675675 }
676676 return new Tuple2 <>(null , "read PubKeyEntry file failure:" + ex .getMessage ());
677677 } finally {
@@ -705,8 +705,8 @@ private void writeCachePubKeyEntryFile(EncryptConfigEntry entry) {
705705 // p.close();
706706 } catch (Throwable ex ) {
707707 if (exptCounter .shouldPrint ()) {
708- logger .warn ("ConfigManager({}) write file({}) exception, secretId ={}, content={}" ,
709- callerId , encryptConfigCacheFile , clientConfig .getAuthSecretId (), entry .toString (), ex );
708+ logger .warn ("ConfigManager({}) write file({}) exception, userName ={}, content={}" ,
709+ callerId , encryptConfigCacheFile , clientConfig .getUserName (), entry .toString (), ex );
710710 }
711711 } finally {
712712 if (fos != null ) {
@@ -836,7 +836,7 @@ private void storeAndBuildMetaConfigure(ProxyClientConfig config) {
836836 this .encryptConfigCacheFile = strBuff
837837 .append (clientConfig .getConfigStoreBasePath ())
838838 .append (ConfigConstants .META_STORE_SUB_DIR )
839- .append (clientConfig .getAuthSecretId ())
839+ .append (clientConfig .getUserName ())
840840 .append (ConfigConstants .REMOTE_ENCRYPT_CACHE_FILE_SUFFIX )
841841 .toString ();
842842 strBuff .delete (0 , strBuff .length ());
0 commit comments