2002/03/21 01:19:32
[org.ibex.core.git] / src / org / bouncycastle / asn1 / x509 / CRLDistPoint.java
diff --git a/src/org/bouncycastle/asn1/x509/CRLDistPoint.java b/src/org/bouncycastle/asn1/x509/CRLDistPoint.java
new file mode 100644 (file)
index 0000000..780ab16
--- /dev/null
@@ -0,0 +1,30 @@
+package org.bouncycastle.asn1.x509;
+
+import org.bouncycastle.asn1.*;
+
+public class CRLDistPoint
+    implements DEREncodable
+{
+    DERConstructedSequence  seq = null;
+
+    public CRLDistPoint(
+        DistributionPoint[] points)
+    {
+        seq = new DERConstructedSequence();
+
+        for (int i = 0; i != points.length; i++)
+        {
+            seq.addObject(points[i]);
+        }
+    }
+
+    /**
+     * <pre>
+     * CRLDistPoint ::= SEQUENCE SIZE {1..MAX} OF DistributionPoint
+     * </pre>
+     */
+    public DERObject getDERObject()
+    {
+        return seq;
+    }
+}