public class TlsSocketFactory
extends java.lang.Object
Constructor and Description |
---|
TlsSocketFactory(TlsContext tls_context)
Creates a new TlsSocketFactory
|
Modifier and Type | Method and Description |
---|---|
TlsSocket |
createTlsSocket(IpAddress ipaddr,
int port)
Creates a new TlsSocket
|
TlsSocket |
createTlsSocket(IpAddress ipaddr,
int port,
IpAddress local_ipaddr,
int local_port)
Creates a new TlsSocket
|
TlsSocket |
createTlsSocket(java.lang.String host,
int port)
Creates a new TlsSocket
|
java.lang.String[] |
getEnabledProtocols()
Gets the list of enabled protocol versions.
|
java.lang.String[] |
getSupportedProtocols()
Gets the list of supported protocol versions.
|
boolean |
getUseClientMode()
Whether using client (or server) mode in its first handshake.
|
void |
setEnabledProtocols(java.lang.String[] enabled_protocols)
Sets the list of enabled protocol versions.
|
void |
setUseClientMode(boolean flag)
Sets whether using client (or server) mode in its first handshake.
|
public TlsSocketFactory(TlsContext tls_context) throws java.security.KeyStoreException, java.security.KeyManagementException, java.security.UnrecoverableKeyException, java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
public void setUseClientMode(boolean flag)
public boolean getUseClientMode()
public java.lang.String[] getSupportedProtocols()
public java.lang.String[] getEnabledProtocols()
public void setEnabledProtocols(java.lang.String[] enabled_protocols)
public TlsSocket createTlsSocket(java.lang.String host, int port) throws java.io.IOException
java.io.IOException
public TlsSocket createTlsSocket(IpAddress ipaddr, int port) throws java.io.IOException
java.io.IOException