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

OpenSSLServerSocketFactoryImpl

public class OpenSSLServerSocketFactoryImpl extends SSLServerSocketFactory

Fields Summary
private SSLParameters
sslParameters
private IOException
instantiationException
Constructors Summary
public OpenSSLServerSocketFactoryImpl()

        super();
        try {
            this.sslParameters = SSLParameters.getDefault();
            this.sslParameters.setUseClientMode(false);
        } catch (KeyManagementException e) {
            instantiationException =
                new IOException("Delayed instantiation exception:");
            instantiationException.initCause(e);
        }
    
public OpenSSLServerSocketFactoryImpl(SSLParameters sslParameters)

        this.sslParameters = sslParameters;
    
Methods Summary
public java.net.ServerSocketcreateServerSocket()

        return new OpenSSLServerSocketImpl((SSLParameters) sslParameters.clone());
    
public java.net.ServerSocketcreateServerSocket(int port)

        return new OpenSSLServerSocketImpl(port, (SSLParameters) sslParameters.clone());
    
public java.net.ServerSocketcreateServerSocket(int port, int backlog)

        return new OpenSSLServerSocketImpl(port, backlog, (SSLParameters) sslParameters.clone());
    
public java.net.ServerSocketcreateServerSocket(int port, int backlog, java.net.InetAddress iAddress)

        return new OpenSSLServerSocketImpl(port, backlog, iAddress, (SSLParameters) sslParameters.clone());
    
public java.lang.String[]getDefaultCipherSuites()

        // TODO There might be a better way to implement this...
        return OpenSSLServerSocketImpl.nativegetsupportedciphersuites();
    
public java.lang.String[]getSupportedCipherSuites()

        return OpenSSLServerSocketImpl.nativegetsupportedciphersuites();