01: package org.bouncycastle.asn1;
02:
03: import java.util.Vector;
04:
05: /**
06: * a general class for building up a vector of DER encodable objects -
07: * this will eventually be superceded by ASN1EncodableVector so you should
08: * use that class in preference.
09: */
10: public class DEREncodableVector {
11: private Vector v = new Vector();
12:
13: /**
14: * @deprecated use ASN1EncodableVector instead.
15: */
16: public DEREncodableVector() {
17:
18: }
19:
20: public void add(DEREncodable obj) {
21: v.addElement(obj);
22: }
23:
24: public DEREncodable get(int i) {
25: return (DEREncodable) v.elementAt(i);
26: }
27:
28: public int size() {
29: return v.size();
30: }
31: }
|