OpenSSLSocketFactoryImplpublic 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.Socket | createSocket(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.Socket | createSocket()
if (instantiationException != null) {
throw instantiationException;
}
return new OpenSSLSocketImpl((SSLParameters) sslParameters.clone());
| public java.net.Socket | createSocket(java.lang.String host, int port)
return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone());
| public java.net.Socket | createSocket(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.Socket | createSocket(java.net.InetAddress host, int port)
return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone());
| public java.net.Socket | createSocket(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();
|
|