2002/03/21 01:19:32
[org.ibex.core.git] / src / org / bouncycastle / asn1 / DERSet.java
diff --git a/src/org/bouncycastle/asn1/DERSet.java b/src/org/bouncycastle/asn1/DERSet.java
new file mode 100644 (file)
index 0000000..2d2caf4
--- /dev/null
@@ -0,0 +1,24 @@
+package org.bouncycastle.asn1;
+
+import java.io.*;
+
+/**
+ * DER Set with a single object.
+ */
+public class DERSet
+    extends DERConstructedSet
+{
+    /**
+     * @param sequence the sequence making up the set
+     */
+    public DERSet(
+        DEREncodable   sequence)
+    {
+        this.addObject(sequence);
+    }
+
+    public DERObject getSequence()
+    {
+        return (DERObject)this.getObjectAt(0);
+    }
+}