return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) && (orgUnit != null && orgUnit.equals(((X500DistinguishedName) o).orgUnit)) && (organization != null && organization.equals(((X500DistinguishedName) o).organization)) && (street != null && street.equals(((X500DistinguishedName) o).street)) && (state != null && state.equals(((X500DistinguishedName) o).state)) && (domainComponent != null && domainComponent.equals(((X500DistinguishedName) o).domainComponent)) && (title != null && title.equals(((X500DistinguishedName) o).title)) && (dnQualifier != null && dnQualifier.equals(((X500DistinguishedName) o).dnQualifier)) && (surname != null && surname.equals(((X500DistinguishedName) o).surname)) && (givenName != null && givenName.equals(((X500DistinguishedName) o).givenName)) && (initials != null && initials.equals(((X500DistinguishedName) o).initials)) && (generation != null && generation.equals(((X500DistinguishedName) o).generation)) && (email != null && email.equals(((X500DistinguishedName) o).email)) && (userid != null && userid.equals(((X500DistinguishedName) o).userid));
if (!(o instanceof X500DistinguishedName)) return false; if (size() != ((X500DistinguishedName) o).size()) return false; for (int i = 0; i < size(); i++) { Map m = (Map) components.get(i); for (Iterator it2 = m.entrySet().iterator(); it2.hasNext(); ) { Map.Entry e = (Map.Entry) it2.next(); OID oid = (OID) e.getKey(); String v1 = (String) e.getValue(); String v2 = ((X500DistinguishedName) o).getComponent(oid, i); if (!compressWS(v1).equalsIgnoreCase(compressWS(v2))) return false; } } return true;
  public boolean equals(Object o)  {    return       (commonName != null &&       commonName.equals(((X500DistinguishedName) o).commonName)) &&      (country != null &&       country.equals(((X500DistinguishedName) o).country)) &&      (locality != null &&       locality.equals(((X500DistinguishedName) o).locality)) &&      (orgUnit != null &&       orgUnit.equals(((X500DistinguishedName) o).orgUnit)) &&      (organization != null &&       organization.equals(((X500DistinguishedName) o).organization)) &&      (street != null &&       street.equals(((X500DistinguishedName) o).street)) &&      (state != null &&       state.equals(((X500DistinguishedName) o).state)) &&      (domainComponent != null &&       domainComponent.equals(((X500DistinguishedName) o).domainComponent)) &&      (title != null &&       title.equals(((X500DistinguishedName) o).title)) &&      (dnQualifier != null &&       dnQualifier.equals(((X500DistinguishedName) o).dnQualifier)) &&      (surname != null &&       surname.equals(((X500DistinguishedName) o).surname)) &&      (givenName != null &&       givenName.equals(((X500DistinguishedName) o).givenName)) &&      (initials != null &&       initials.equals(((X500DistinguishedName) o).initials)) &&      (generation != null &&       generation.equals(((X500DistinguishedName) o).generation)) &&      (email != null &&       email.equals(((X500DistinguishedName) o).email)) &&      (userid != null &&       userid.equals(((X500DistinguishedName) o).userid));  }