package org.bouncycastle.asn1.x509;
-import java.io.*;
import java.util.*;
import org.bouncycastle.asn1.*;
* note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.
*/
public static final DERObjectIdentifier EmailAddress = new DERObjectIdentifier("1.2.840.113549.1.9.1");
-
- /**
- * email address in Verisign certificates
- */
- public static final DERObjectIdentifier E = EmailAddress;
-
+
+ /**
+ * email address in Verisign certificates
+ */
+ public static final DERObjectIdentifier E = EmailAddress;
+
/*
* others...
*/
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] == true)
- {
- continue;
- }
-
- String _oOID = ((DERObjectIdentifier)_oxn.ordering.elementAt(j)).getId();
- String _oVal = (String)_oxn.values.elementAt(j);
+ 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] == true)
+ {
+ continue;
+ }
+
+ String _oOID = ((DERObjectIdentifier)_oxn.ordering.elementAt(j)).getId();
+ String _oVal = (String)_oxn.values.elementAt(j);
// was equalsIgnoreCase but MIDP doesn't like that.
- if(_oid.equals(_oOID) && _val.toLowerCase().equals(_oVal.toLowerCase()))
- {
- _indexes[j] = true;
- _found = true;
- break;
- }
-
- }
-
- if(!_found)
- {
- return false;
- }
- }
-
- return true;
- }
-
+ if(_oid.equals(_oOID) && _val.toLowerCase().equals(_oVal.toLowerCase()))
+ {
+ _indexes[j] = true;
+ _found = true;
+ break;
+ }
+
+ }
+
+ if(!_found)
+ {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
public int hashCode()
{
ASN1Sequence seq = (ASN1Sequence)this.getDERObject();