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

MySSLContextSpi

public class MySSLContextSpi extends SSLContextSpi
Additional class for verification of SSLContextSpi and SSLContext functionality

Fields Summary
private boolean
init
Constructors Summary
Methods Summary
protected javax.net.ssl.SSLEngineengineCreateSSLEngine(java.lang.String host, int port)

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return new tmpSSLEngine(host, port);
    
protected javax.net.ssl.SSLEngineengineCreateSSLEngine()

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return new tmpSSLEngine();
    
protected javax.net.ssl.SSLSessionContextengineGetClientSessionContext()

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return null;
    
protected javax.net.ssl.SSLSessionContextengineGetServerSessionContext()

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return null;
    
protected javax.net.ssl.SSLServerSocketFactoryengineGetServerSocketFactory()

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return null;
    
protected javax.net.ssl.SSLSocketFactoryengineGetSocketFactory()

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }   
        return null;
    
protected voidengineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom sr)

    
         
                
        if (sr == null) {
            throw new KeyManagementException(
                    "secureRandom is null");
        }
        init = true;