FileDocCategorySizeDatePackage
MyCertificateFactorySpi.javaAPI DocAndroid 1.5 API4498Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support.cert

MyCertificateFactorySpi

public class MyCertificateFactorySpi extends CertificateFactorySpi
Additional class for verification CertificateFactorySpi and CertificateFactory classes

Fields Summary
private static boolean
mode
private Set
list
Constructors Summary
public MyCertificateFactorySpi()

        super();
        mode = true;
        list = new HashSet<String>();
        list.add("aa");
        list.add("bb");
    
Methods Summary
public java.security.cert.CRLengineGenerateCRL(java.io.InputStream inStream)

        if (!(inStream instanceof DataInputStream)) {
            throw new CRLException("Incorrect inputstream");
        }
        return null;
    
public java.util.CollectionengineGenerateCRLs(java.io.InputStream inStream)

        if (!(inStream instanceof DataInputStream)) {
            throw new CRLException("Incorrect inputstream");
        }
        return null;
    
public java.security.cert.CertPathengineGenerateCertPath(java.io.InputStream inStream)

        if (!(inStream instanceof DataInputStream)) {
            throw new CertificateException("Incorrect inputstream");
        }
        Iterator<String> it = engineGetCertPathEncodings();
        if (!it.hasNext()) {
            throw new CertificateException("There are no CertPath encodings");
        }
        return engineGenerateCertPath(inStream, it.next());
    
public java.security.cert.CertPathengineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding)

        if (!(inStream instanceof DataInputStream)) {
            throw new CertificateException("Incorrect inputstream");
        }
        if (encoding.length() == 0) {
            if (mode) {
                throw new IllegalArgumentException("Encoding is empty");
            }
        }
        return null;
    
public java.security.cert.CertPathengineGenerateCertPath(java.util.List certificates)

        if (certificates == null) {
            if (mode) {
                throw new NullPointerException("certificates is null");
            }
        }
        return null;
    
public java.security.cert.CertificateengineGenerateCertificate(java.io.InputStream inStream)

        if (!(inStream instanceof DataInputStream)) {
            throw new CertificateException("Incorrect inputstream");
        }
        return null;
    
public java.util.CollectionengineGenerateCertificates(java.io.InputStream inStream)

        if (!(inStream instanceof DataInputStream)) {
            throw new CertificateException("Incorrect inputstream");
        }
        return null;
    
public java.util.IteratorengineGetCertPathEncodings()

        if (!mode) {
            list.clear();
        }
        return list.iterator();
    
public static voidputMode(boolean newMode)

        mode = newMode;