public class TlsServerFactory
extends java.lang.Object
Constructor and Description |
---|
TlsServerFactory(TlsContext tls_context)
Creates a new TlsServerFactory
|
Modifier and Type | Method and Description |
---|---|
TlsServer |
createTlsServer(int port,
IpAddress bind_ipaddr,
TcpServerListener listener)
Creates a new TlsServer
|
TlsServer |
createTlsServer(int port,
TcpServerListener listener)
Creates a new TlsServer
|
java.lang.String[] |
getEnabledProtocols()
Gets the list of enabled protocol versions.
|
boolean |
getNeedClientAuth()
Whether requiring client authentication.
|
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 |
setNeedClientAuth(boolean flag)
Sets whether requiring client authentication.
|
void |
setUseClientMode(boolean flag)
Sets whether using client (or server) mode in its first handshake.
|
public TlsServerFactory(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 void setNeedClientAuth(boolean flag)
public boolean getNeedClientAuth()
public java.lang.String[] getEnabledProtocols()
public void setEnabledProtocols(java.lang.String[] enabled_protocols)
public TlsServer createTlsServer(int port, TcpServerListener listener) throws java.io.IOException
java.io.IOException
public TlsServer createTlsServer(int port, IpAddress bind_ipaddr, TcpServerListener listener) throws java.io.IOException
java.io.IOException