public void setPrincipals(Set<ResolvedKerberosPrincipal> principals) {
    this.principals = principals;
    if (principals != null) {
      for (ResolvedKerberosPrincipal principal : this.principals) {
        principal.setResolvedKerberosKeytab(this);
      }
    }
  }
Sets evaluated host-to-principal set associated with given keytab.

@param principals set of principals to add
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/stageutils/ResolvedKerberosKeytab.java