public class SslServerFactory extends java.lang.Object implements IServerSecurityFactory
| Constructor and Description |
|---|
SslServerFactory()
Constructs the factory.
|
SslServerFactory(javax.net.ssl.SSLServerSocketFactory sslServerSocketFactory,
boolean isClientCertificateRequired)
Constructs the factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(java.net.InetSocketAddress socketAddress)
Creates the SSLServerSocket.
|
int |
getMaxAmountOfConnections()
Gets the maximum amount of connections the TCP listener can handle.
|
int |
getReceiveBufferSize()
Returns the size of the receiving buffer in bytes.
|
int |
getReceiveTimeout()
Returns timeout setup for receiving a message.
|
boolean |
getReuseAddress()
Gets the flag indicating whether the socket can be bound to the address which is already in use.
|
int |
getSendBufferSize()
Returns the size of the sending buffer in bytes.
|
int |
getSendTimeout()
Returns timeout setup for sending a response message.
|
void |
setMaxAmountOfConnections(int maxAmountOfConnections)
Sets the maximum amount of connections the TCP listener can handle.
|
void |
setReceiveBufferSize(int size)
Sets the size of receiving buffer in bytes.
|
void |
setReceiveTimeout(int receiveTimeout)
Sets timeout for receiving a message.
|
void |
setReuseAddress(boolean allowReuseAddress)
Sets the flag indicating whether the socket can be bound to the address which is already in use.
|
void |
setSendBufferSize(int size)
Sets the size of sending buffer in bytes.
|
void |
setSendTimeout(int sendTimeout)
Sets timeout for sending a response message.
|
public SslServerFactory()
public SslServerFactory(javax.net.ssl.SSLServerSocketFactory sslServerSocketFactory,
boolean isClientCertificateRequired)
sslServerSocketFactory - given SSL server socket factoryisClientCertificateRequired - true if also the client certificate shall be required during the communicationpublic java.net.ServerSocket createServerSocket(java.net.InetSocketAddress socketAddress)
throws java.lang.Exception
createServerSocket in interface IServerSecurityFactorysocketAddress - addressjava.lang.Exceptionpublic void setSendTimeout(int sendTimeout)
IServerSecurityFactorysetSendTimeout in interface IServerSecurityFactorypublic int getSendTimeout()
IServerSecurityFactorygetSendTimeout in interface IServerSecurityFactorypublic void setReceiveTimeout(int receiveTimeout)
IServerSecurityFactorysetReceiveTimeout in interface IServerSecurityFactorypublic int getReceiveTimeout()
IServerSecurityFactorygetReceiveTimeout in interface IServerSecurityFactorypublic void setSendBufferSize(int size)
IServerSecurityFactorysetSendBufferSize in interface IServerSecurityFactorysize - size of the buffer in bytes. (use 8192 by default)public int getSendBufferSize()
IServerSecurityFactorygetSendBufferSize in interface IServerSecurityFactorypublic void setReceiveBufferSize(int size)
IServerSecurityFactorysetReceiveBufferSize in interface IServerSecurityFactorysize - size of the buffer in bytes. (use 8192 by default)public int getReceiveBufferSize()
IServerSecurityFactorygetReceiveBufferSize in interface IServerSecurityFactorypublic void setReuseAddress(boolean allowReuseAddress)
IServerSecurityFactorysetReuseAddress in interface IServerSecurityFactoryallowReuseAddress - true if the socket can be bound to the address which is already in use.public boolean getReuseAddress()
IServerSecurityFactorygetReuseAddress in interface IServerSecurityFactorypublic int getMaxAmountOfConnections()
IServerSecurityFactorygetMaxAmountOfConnections in interface IServerSecurityFactorypublic void setMaxAmountOfConnections(int maxAmountOfConnections)
IServerSecurityFactorysetMaxAmountOfConnections in interface IServerSecurityFactory