@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    } else if (this == obj) {
      return true;
    } else if (obj.getClass() == this.getClass()) {
      PrincipalKeyCredential other = (PrincipalKeyCredential) obj;
      return ((this.principal == null) ? (other.principal == null) : this.principal.equals(other.principal)) &&
          ((this.key == null) ? (other.key == null) : Arrays.equals(this.key, other.key));
    } else {
      return false;
    }
  }
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