JsonUtils rename method name

This commit is contained in:
MaxKey
2022-09-18 10:41:43 +08:00
parent 5617aa5c94
commit d22358bb98
29 changed files with 50 additions and 50 deletions
@@ -63,7 +63,7 @@ public class KerberosPrincipal {
System.out.println(DateUtils.toUtc(datetime));
String json="{\"fullPrincipal\":\"Administrator@CONNSEC.COM\",\"principal\":\"Administrator\",\"userDomain\":\"CONNSEC\",\"notOnOrAfter\":\"2014-01-18T07:10:16.624Z\"}";
KerberosToken kerberosToken=new KerberosToken();
kerberosToken=(KerberosToken)JsonUtils.json2Object(json, kerberosToken);
kerberosToken=(KerberosToken)JsonUtils.stringToObject(json, kerberosToken);
System.out.println(kerberosToken);
@@ -208,7 +208,7 @@ public class UserInfoController {
for(int i=0;i<extraAttributeLabel.length;i++){
extraAttributeMap.put(extraAttributeLabel[i], extraAttributeValue[i]);
}
String extraAttribute=JsonUtils.object2Json(extraAttributeMap);
String extraAttribute=JsonUtils.toString(extraAttributeMap);
userInfo.setExtraAttribute(extraAttribute);
}
}