if (_val.length() != 0)
v2.append(c1);  for (int k = 1; k < _oVal.length(); k++)
    public boolean equals(Object _obj)     {        if (_obj == this)        {            return true;        }        if (_obj == null || !(_obj instanceof X509Name))        {            return false;        }                X509Name _oxn          = (X509Name)_obj;                if (this.getDERObject().equals(_oxn.getDERObject()))        {            return true;        }                int      _orderingSize = ordering.size();        if (_orderingSize != _oxn.ordering.size())         {            return false;        }                boolean[] _indexes = new boolean[_orderingSize];        for(int i = 0; i < _orderingSize; i++)         {            boolean _found = false;            String  _oid   = ((DERObjectIdentifier)ordering.elementAt(i)).getId();            String  _val   = (String)values.elementAt(i);                        for(int j = 0; j < _orderingSize; j++)             {                if (_indexes[j])                {                    continue;                }                                String _oOID = ((DERObjectIdentifier)_oxn.ordering.elementAt(j)).getId();                String _oVal = (String)_oxn.values.elementAt(j);                if (_oid.equals(_oOID))                {                    _val = _val.trim().toLowerCase();                    _oVal = _oVal.trim().toLowerCase();                    if (_val.equals(_oVal))                    {                        _indexes[j] = true;                        _found      = true;                        break;                    }                    else                    {                        StringBuffer    v1 = new StringBuffer();                        StringBuffer    v2 = new StringBuffer();                        if (_val.length() != 0)                        {                            char    c1 = _val.charAt(0);                            v1.append(c1);                            for (int k = 1; k < _val.length(); k++)                            {                                char    c2 = _val.charAt(k);                                if (!(c1 == ' ' && c2 == ' '))                                {                                    v1.append(c2);                                }                                c1 = c2;                            }                        }                        if (_oVal.length() != 0)                        {                            char    c1 = _oVal.charAt(0);                            v2.append(c1);                            for (int k = 1; k < _oVal.length(); k++)                            {                                char    c2 = _oVal.charAt(k);                                if (!(c1 == ' ' && c2 == ' '))                                {                                    v2.append(c2);                                }                                c1 = c2;                            }                        }                        if (v1.toString().equals(v2.toString()))                        {                            _indexes[j] = true;                            _found      = true;                            break;                        }                    }                }            }            if(!_found)            {                return false;            }        }                return true;    }