public class I2PSSLSocketFactory extends Object
Constructor and Description |
---|
I2PSSLSocketFactory(I2PAppContext context,
boolean loadSystemCerts,
String relativeCertPath) |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(InetAddress host,
int port)
Returns a socket to the host.
|
Socket |
createSocket(String host,
int port)
Returns a socket to the host.
|
public I2PSSLSocketFactory(I2PAppContext context, boolean loadSystemCerts, String relativeCertPath) throws GeneralSecurityException
relativeCertPath
- e.g. "certificates/i2cp"GeneralSecurityException
public Socket createSocket(String host, int port) throws IOException
IOException
public Socket createSocket(InetAddress host, int port) throws IOException
IOException