@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    ClusterEntity that = (ClusterEntity) o;

    if (!clusterId.equals(that.clusterId)) {
      return false;
    }
    if (!clusterName.equals(that.clusterName)) {
      return false;
    }

    return true;
  }
Set's this ClusterEntity's security type

@param securityType the new SecurityType
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterEntity.java