Code example for Vector

Methods: addElement

0
        byte[]              value)
    { 
        if (extensions == null)
        { 
            extensions = new Hashtable();
            extOrdering = new Vector();
        } 
 
        extensions.put(OID, new X509Extension(critical, new DEROctetString(value)));
        extOrdering.addElement(OID);
    } 
 
    /** 
     * generate an X509 certificate, based on the current issuer and subject 
     * using the default provider "BC". 
     */ 
    public X509Certificate generateX509Certificate(
        PrivateKey      key)
        throws SecurityException, SignatureException, InvalidKeyException 
    { 
        try