@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final AuthenticationInfo other = (AuthenticationInfo) obj;
    if ((this.login == null) ? (other.login != null) : !this.login.equals(other.login)) {
      return false;
    }
    if (!Arrays.equals(this.password, other.password)) {
      return false;
    }
    return true;
  }