Code example for List

Methods: iterator

0
     * 
     * @return an Iterator over the names of the supported encodings (as Strings) 
     **/ 
    public Iterator getEncodings()
    { 
        return certPathEncodings.iterator();
    } 
 
    /** 
     * Returns the encoded form of this certification path, using 
     * the default encoding. 
     * 
     * @return the encoded bytes 
     * @exception CertificateEncodingException if an encoding error occurs 
     **/ 
    public byte[] getEncoded() 
        throws CertificateEncodingException 
    { 
        Iterator iter = getEncodings();
        if (iter.hasNext())
        {