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

      EqualsBuilder equalsBuilder = new EqualsBuilder();
      equalsBuilder.append(userName, that.userName);
      equalsBuilder.append(sourceId, that.sourceId);
      equalsBuilder.append(authenticationType, that.authenticationType);
      equalsBuilder.append(key, that.key);
      equalsBuilder.append(createTime, that.createTime);
      equalsBuilder.append(updateTime, that.updateTime);
      return equalsBuilder.isEquals();
    }
  }
Returns user name

@return user name
ambari-server/src/main/java/org/apache/ambari/server/controller/UserAuthenticationSourceResponse.java