public class RistrettoSSLSocketFactory
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RistrettoSSLSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port)
Creates a new SSL Socket connected to the specified address and port.
|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
Creates a new SSL Socket connected to the specified address and port.
|
java.net.Socket |
createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose)
Creates a SSL Socket on top of the given Socket.
|
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates a new SSL Socket connected to the specified name address and
port.
|
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort)
Creates a new SSL Socket connected to the specified name address and
port.
|
static RistrettoSSLSocketFactory |
getInstance()
Gets the instance of the RistrettoSSLSocketFactory.
|
void |
setKeyManager(javax.net.ssl.KeyManager km)
Set the KeyManager of the SSLContext.
|
void |
setTrustManager(javax.net.ssl.TrustManager tm)
Set the TrustManager of the used SSLContext.
|
public static RistrettoSSLSocketFactory getInstance()
public void setTrustManager(javax.net.ssl.TrustManager tm)
tm - the Trustmanager used by the SSLContext.public void setKeyManager(javax.net.ssl.KeyManager km)
km - the KeyManager used by the SSLContextpublic java.net.Socket createSocket(java.net.InetAddress address,
int port)
throws java.io.IOException
address - the address to connect toport - the port to connect tojava.io.IOExceptionpublic java.net.Socket createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
throws java.io.IOException
address - the address to connect toport - the port to connect tolocalAddress - the local InetAddresslocalPort - the local portjava.io.IOExceptionpublic java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
host - the name address to connect toport - the port to connect tojava.io.IOExceptionpublic java.net.Socket createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort)
throws java.io.IOException
host - the name address to connect toport - the port to connect tolocalHost - the local InetAddresslocalPort - the local portjava.io.IOExceptionpublic java.net.Socket createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose)
throws java.io.IOException
socket - plain socket on which the SSL Socket is builthost - the local portport - the port to connect toautoClose - shall the socket be closed when the SSL socket is closed?java.io.IOExceptionCopyright © 2024. All Rights Reserved.