FileDocCategorySizeDatePackage
OpenSSLSocketFactoryImpl.javaAPI DocAndroid 1.5 API3207Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.provider.jsse

OpenSSLSocketFactoryImpl

public class OpenSSLSocketFactoryImpl extends SSLSocketFactory

Fields Summary
private org.apache.harmony.xnet.provider.jsse.SSLParameters
sslParameters
private IOException
instantiationException
Constructors Summary
public OpenSSLSocketFactoryImpl()

        super();
        try {
            sslParameters = SSLParameters.getDefault();
        } catch (KeyManagementException e) {
            instantiationException =
                new IOException("Delayed instantiation exception:");
            instantiationException.initCause(e);
        }
    
public OpenSSLSocketFactoryImpl(org.apache.harmony.xnet.provider.jsse.SSLParameters sslParameters)

        super();
        this.sslParameters = sslParameters;
    
Methods Summary
public java.net.SocketcreateSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)

        return new OpenSSLSocketImplWrapper(s, host, port, autoClose, (SSLParameters) sslParameters.clone());
    
public java.net.SocketcreateSocket()

        if (instantiationException != null) {
            throw instantiationException;
        }
        return new OpenSSLSocketImpl((SSLParameters) sslParameters.clone());
    
public java.net.SocketcreateSocket(java.lang.String host, int port)

        return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone());
    
public java.net.SocketcreateSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)

        return new OpenSSLSocketImpl(host, port, localHost, localPort, (SSLParameters) sslParameters.clone());
    
public java.net.SocketcreateSocket(java.net.InetAddress host, int port)

        return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone());
    
public java.net.SocketcreateSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)

        return new OpenSSLSocketImpl(address, port, localAddress, localPort, (SSLParameters) sslParameters.clone());
    
public java.lang.String[]getDefaultCipherSuites()

        // TODO There might be a better implementation for this...
        return OpenSSLSocketImpl.nativegetsupportedciphersuites();
    
public java.lang.String[]getSupportedCipherSuites()

        return OpenSSLSocketImpl.nativegetsupportedciphersuites();