@Override
  public char[] toValue() {
    StringBuilder builder = new StringBuilder();
    builder.append("PrincipalKeyCredential");
    builder.append(new Gson().toJson(this));
    return builder.toString().toCharArray();
  }
Returns a value representation of this PrincipalKeyCredential

@return a String containing the value representation of this PrincipalKeyCredential
ambari-server/src/main/java/org/apache/ambari/server/security/credential/PrincipalKeyCredential.java