2002/03/21 01:19:32
[org.ibex.core.git] / src / org / bouncycastle / asn1 / DERSet.java
1 package org.bouncycastle.asn1;
2
3 import java.io.*;
4
5 /**
6  * DER Set with a single object.
7  */
8 public class DERSet
9     extends DERConstructedSet
10 {
11     /**
12      * @param sequence the sequence making up the set
13      */
14     public DERSet(
15         DEREncodable   sequence)
16     {
17         this.addObject(sequence);
18     }
19
20     public DERObject getSequence()
21     {
22         return (DERObject)this.getObjectAt(0);
23     }
24 }