1    package org.bouncycastle.asn1;
2    
3    import java.util.Vector;
4    
5    /**
6     * a general class for building up a vector of DER encodable objects
7     */
8    public class DEREncodableVector
9    {
10       private Vector  v = new Vector();
11   
12       public void add(
13           DEREncodable   obj)
14       {
15           v.addElement(obj);
16       }
17   
18       public DEREncodable get(
19           int i)
20       {
21           return (DEREncodable)v.elementAt(i);
22       }
23   
24       public int size()
25       {
26           return v.size();
27       }
28   }
29