FileDocCategorySizeDatePackage
SSLContextSpiImpl.javaAPI DocAndroid 1.5 API2207Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.tests.support

SSLContextSpiImpl

public class SSLContextSpiImpl extends MySSLContextSpi

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

        int max = 65535;
        
        if (port < 0 || port > max) {
            throw new IllegalArgumentException("Illegal port");
        }
        
        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }
        return new tmpSSLEngine(host, port);
    
public javax.net.ssl.SSLEngineengineCreateSSLEngine()

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

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

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

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

        if (!init) {
            throw new RuntimeException("Not initialiazed");
        }   
        return null;
    
public 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;