public static KeyMetadata read(String jsonString) { KeyMetadata kmd = (KeyMetadata) Util.gson().fromJson(jsonString, KeyMetadata.class); for (KeyVersion version : kmd.getVersions()) { kmd.versionMap.put(Integer.valueOf(version.getVersionNumber()), version); } return kmd; }
static DsaPublicKey read(String input) throws KeyczarException { DsaPublicKey key = Util.gson().fromJson(input, DsaPublicKey.class); key.init(); return key; }
public String toString() { return Util.gson().toJson((Object) this); }