@Override
  public int hashCode() {
    return Objects.hashCode(hostId, hostName, principal, isService, cacheFile, serviceMapping, keytabPath);
  }
Class that represents principal and it info(host, keytab path, service and component mapping).
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/stageutils/ResolvedKerberosPrincipal.java