resolve darcs stupidity
[org.ibex.core.git] / src / org / bouncycastle / asn1 / x509 / X509Name.java
index 139bf09..e5019b6 100644 (file)
@@ -1,6 +1,5 @@
 package org.bouncycastle.asn1.x509;
 
-import java.io.*;
 import java.util.*;
 
 import org.bouncycastle.asn1.*;
@@ -55,12 +54,12 @@ public class X509Name
      * 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...
      */
@@ -363,46 +362,46 @@ public class X509Name
 
         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();