public void setKey(char[] key) {
    this.key = key;
  }
@param key a char array containing the secret key for this credential
ambari-server/src/main/java/org/apache/ambari/server/security/credential/PrincipalKeyCredential.java