FileDocCategorySizeDatePackage
MyKeyStoreSpi.javaAPI DocAndroid 1.5 API4983Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support

MyKeyStoreSpi

public class MyKeyStoreSpi extends KeyStoreSpi
Additional class for KeyStoreSpi and KeyStore verification

Fields Summary
Constructors Summary
Methods Summary
public java.util.EnumerationengineAliases()

        return null;
    
public booleanengineContainsAlias(java.lang.String alias)

        if (alias != null)
        {
            return alias.startsWith("test_engineEntry");
        }
        return false;
    
public voidengineDeleteEntry(java.lang.String alias)

        throw new KeyStoreException(
                "engineDeleteEntry is not supported in myKeyStoreSpi");
    
public java.security.cert.CertificateengineGetCertificate(java.lang.String alias)

        if (alias.equals("test_engineEntryInstanceOf_Alias1")) {
            return new MyCertificate("TestType");
        }
        return null;
    
public java.lang.StringengineGetCertificateAlias(java.security.cert.Certificate cert)

        return "";
    
public java.security.cert.Certificate[]engineGetCertificateChain(java.lang.String alias)

        return null;
    
public java.util.DateengineGetCreationDate(java.lang.String alias)

        return new Date(0);
    
public java.security.KeyengineGetKey(java.lang.String alias, char[] password)

        return null;
    
public booleanengineIsCertificateEntry(java.lang.String alias)

        if (alias.equals("test_engineEntryInstanceOf_Alias2")) {
            return true;
        } else {
            return false;
        }
    
public booleanengineIsKeyEntry(java.lang.String alias)

        if (alias.equals("test_engineEntryInstanceOf_Alias1")) {
            return true;
        } else {
            return false;
        }

    
public voidengineLoad(java.io.InputStream stream, char[] password)

    
public voidengineSetCertificateEntry(java.lang.String alias, java.security.cert.Certificate cert)

        throw new KeyStoreException(
                "engineSetCertificateEntry is not supported in myKeyStoreSpi");
    
public voidengineSetKeyEntry(java.lang.String alias, java.security.Key key, char[] password, java.security.cert.Certificate[] chain)

        throw new KeyStoreException(
                "engineSetKeyEntry is not supported in myKeyStoreSpi");
    
public voidengineSetKeyEntry(java.lang.String alias, byte[] key, java.security.cert.Certificate[] chain)

        throw new KeyStoreException(
                "engineSetKeyEntry is not supported in myKeyStoreSpi");
    
public intengineSize()

        return 0;
    
public voidengineStore(java.io.OutputStream stream, char[] password)

        if (!(stream instanceof ByteArrayOutputStream)) {
            throw new IOException("Incorrect stream");
        }
        if (((ByteArrayOutputStream) stream).size() == 0) {
            throw new IOException("Incorrect stream size ");

        }