public interface ServerSocketInterface2 extends ServerSocketInterface
As SSL requires additional parameters that are generally implementation dependent, the "server.ini" file object is passed along. This makes it possible to access information in - typically - the "[SSL]" section of the file.
SSLINFO_CLIENTCERT_ISSUER, SSLINFO_CLIENTCERT_PUBLICKEYFORMAT, SSLINFO_CLIENTCERT_SERIALNUMBER, SSLINFO_CLIENTCERT_SIGNATUREALGORITHM, SSLINFO_CLIENTCERT_SUBJECT, SSLINFO_CLIENTCERT_VALIDFROM, SSLINFO_CLIENTCERT_VALIDTO, SSLINFO_CLIENTCERT_VERSION, SSLINFO_GETCIPHER, SSLINFO_GETEFFECTIVEBITS, SSLINFO_ISENCRYPTED, SSLINFO_ISSTRONGENCRYPTED
Modifier and Type | Method and Description |
---|---|
ISocket |
acceptNoHandshake()
Listens for a connection to be made to this socket and accepts it.
|
ServerSocketInterface2 |
createServerSocket(String id,
int port,
int mapToPort,
int count,
InetAddress address)
Creates the ServerSocket listener.
|
void |
initialize(IniFile ini,
String name)
Initializes the server socket with information in the INI file for the SSL
protocol.
|
void |
performAcceptHandshake(ISocket s)
Performs the accept handshake for SSL.
|
close, getInetAddress, getInformation, getLocalAddress, getLocalName, getLocalPort, getMapToPort, getPortID, isEncrypted, isLoadBalanced, isStrongEncrypted, isUsingSSL, renegotiateSession, setExternalSSL, setLoadBalancing, toString
void initialize(IniFile ini, String name) throws IOException
name
parameter set to null.ini
- the "server.ini" file from where the potential SSL
package reads information to create the server socket.name
- the section name in the INI file where all settings are
stored (null when no SSL).IOException
- When there is an I/O failure.ServerSocketInterface2 createServerSocket(String id, int port, int mapToPort, int count, InetAddress address) throws IOException
id
- the ID of the port.port
- the port.mapToPort
- the port externally mapped.count
- the number of queued connection requests.address
- the address to listen to (null means all local addresses).ServerSocketInterface3
.IOException
- When there is an I/O failure.ISocket acceptNoHandshake() throws IOException
IOException
- if an I/O error occurs when waiting for a connection.void performAcceptHandshake(ISocket s) throws IOException
IOException
- if an I/O error occurs when waiting for a connection.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.