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

    AmbariGrantedAuthority that = (AmbariGrantedAuthority) o;

    return !(privilegeEntity != null ? !privilegeEntity.equals(that.privilegeEntity) : that.privilegeEntity != null);
  }
Get the associated privilege.

@return the privilege
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariGrantedAuthority.java