finished last of the compile errors
[org.ibex.crypto.git] / src / org / ibex / crypto / DER.java
index 6e3ca1a..c313bd9 100644 (file)
@@ -19,7 +19,7 @@
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
+ * AUTHORS OR COPYRIGHT HOLDER.S BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
  * DEALINGS IN THE SOFTWARE.
@@ -33,25 +33,25 @@ import java.util.*;
 import java.math.BigInteger;
 
 public class DER {
-    public class Null {
+    public static class Null {
         final static Null instance = new Null();
         private Null() { /* noop */ }
         public boolean equals(Object o) { return o == this; }
     }
 
-    public class TaggedObject {
+    public static class TaggedObject {
         public final Object object;
         public final int tag;
         public TaggedObject(int tag, Object object) { this.tag = tag; this.object = object; }
     }
 
-    public class UnknownObject {
+    public static class UnknownObject {
         public final byte[] data;
         public final int tag;
         public UnknownObject(int tag,byte[] data) { this.tag = tag; this.data = data; }
     }
 
-    public class BitString {
+    public static class BitString {
         public final int paddingBits;
         public final byte[] data;
     
@@ -61,11 +61,11 @@ public class DER {
         }
     }
 
-    public class Exception extends java.io.IOException {
+    public static class Exception extends java.io.IOException {
         public Exception(String s) { super(s); }
     }
 
-    public class InputStream extends FilterInputStream {
+    public static class InputStream extends FilterInputStream {
         private static final int MAX_OBJECT_SIZE = 4*1024*1024;
     
         private int limit;
@@ -73,8 +73,8 @@ public class DER {
         private int pos;
         public int getPos() { return pos; }
     
-        public InputStream(InputStream is) { this(is,-1); } 
-        public InputStream(InputStream is, int limit) {
+        public InputStream(java.io.InputStream is) { this(is,-1); } 
+        public InputStream(java.io.InputStream is, int limit) {
             super(is);
             this.limit = limit;
         }