001    package org.apache.commons.ssl.asn1;
002    
003    import java.util.Vector;
004    
005    /**
006     * a general class for building up a vector of DER encodable objects -
007     * this will eventually be superceded by ASN1EncodableVector so you should
008     * use that class in preference.
009     */
010    public class DEREncodableVector {
011        private Vector v = new Vector();
012    
013        /** @deprecated use ASN1EncodableVector instead. */
014        public DEREncodableVector() {
015    
016        }
017    
018        public void add(
019            DEREncodable obj) {
020            v.addElement(obj);
021        }
022    
023        public DEREncodable get(
024            int i) {
025            return (DEREncodable) v.elementAt(i);
026        }
027    
028        public int size() {
029            return v.size();
030        }
031    }