public interface ServerSocketInterfaceAs 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.
| Modifier and Type | Field and Description |
|---|---|
static int | SSLINFO_CLIENTCERT_ISSUERPerforms the SSL handshake, if necessary, and gets the client certificate issuer in form of CN=nnn|O=nnn|L=nnn|S=nnn|C=NN, CN=Common Name, O=Organization, L=Locality, S=State or province, C=Country, and "|" is character '\0'. |
static int | SSLINFO_CLIENTCERT_PUBLICKEYFORMATGet the "Public key format". |
static int | SSLINFO_CLIENTCERT_SERIALNUMBERThe client certificate serial number (null for none, otherwise a hex string without spaces). |
static int | SSLINFO_CLIENTCERT_SIGNATUREALGORITHMGet the "Signature Algorithm". |
static int | SSLINFO_CLIENTCERT_SUBJECTPerforms the SSL handshake, if necessary, and gets the client certificate subject in form of CN=nnn|OU=nnn|O=nnn|L=nnn|S=nnn|C=NN|E=nnn, CN=Common Name, OU=Organizational Unit, O=Organization, L=Locality, S=State or province, C=Country, E=Email address, and "|" is character '\0'. |
static int | SSLINFO_CLIENTCERT_VALIDFROMPerforms the SSL handshake, if necessary, and gets the client certificate "Valid from" date in the server date country settings. |
static int | SSLINFO_CLIENTCERT_VALIDTOPerforms the SSL handshake, if necessary, and gets the client certificate "Valid to" date in the server date country settings. |
static int | SSLINFO_CLIENTCERT_VERSIONGet the "Version" as an integer. |
static int | SSLINFO_GETCIPHERThe level of information: the name of the cipher being used. |
static int | SSLINFO_GETEFFECTIVEBITSThe level of information: The number of effective bits for encryption. |
static int | SSLINFO_ISENCRYPTEDThe level of information: "0" or "1" if encrypted or not. |
static int | SSLINFO_ISSTRONGENCRYPTEDThe level of information: "0" or "1" if strong encrypted (>=128 bits) or not. |
| Modifier and Type | Method and Description |
|---|---|
void | close()Closes this socket. |
InetAddress | getInetAddress()Returns the local address of this server socket. |
String | getInformation(ISocket socket, int index)Returns SSL information about this socket. |
String | getLocalAddress(ISocket socket)Gets the local address of the socket. |
String | getLocalName(ISocket socket)Gets the local name of the socket. |
int | getLocalPort()Returns the port on which this socket is listening. |
int | getMapToPort()Gets the port number being mapped to externally. |
String | getPortID()Gets the port ID. |
boolean | isEncrypted(ISocket socket)Checks if encryption (with SSL with any encryption - not only signing) is used. |
boolean | isLoadBalanced()Checks if the port is load balanced. |
boolean | isStrongEncrypted(ISocket socket)Checks if strong encryption (using SSL) is used. |
boolean | isUsingSSL()Returns if SSL is used or not. |
boolean | renegotiateSession(ISocket socket, boolean isStrongEncryptionRequired, boolean isClientAuthenticationRequired, String accessControlID, Thread readerThread)If an SSL connection is not using strong encryption or if a client certificate is required, call this method. |
void | setExternalSSL(boolean isExternal)Sets the external SSL flag. |
void | setLoadBalancing(boolean isLoadBalanced)Sets load balancing. |
String | toString()Returns the implementation address and implementation port of this socket as a String. |
static final int SSLINFO_ISENCRYPTED
static final int SSLINFO_ISSTRONGENCRYPTED
static final int SSLINFO_GETEFFECTIVEBITS
static final int SSLINFO_GETCIPHER
static final int SSLINFO_CLIENTCERT_SERIALNUMBER
static final int SSLINFO_CLIENTCERT_SUBJECT
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_ISSUER
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_VALIDFROM
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_VALIDTO
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_VERSION
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_SIGNATUREALGORITHM
Returns null if client certificate authentication or SSL is not used.
static final int SSLINFO_CLIENTCERT_PUBLICKEYFORMAT
Returns null if client certificate authentication or SSL is not used.
String getInformation(ISocket socket, int index)
index - index of the information requested.String getPortID()
void setExternalSSL(boolean isExternal)
boolean isUsingSSL()
boolean isEncrypted(ISocket socket)
boolean isStrongEncrypted(ISocket socket)
void setLoadBalancing(boolean isLoadBalanced)
boolean isLoadBalanced()
boolean renegotiateSession(ISocket socket, boolean isStrongEncryptionRequired, boolean isClientAuthenticationRequired, String accessControlID, Thread readerThread) throws IOException
IOException - for negotiation or other I/O failures.InetAddress getInetAddress()
String getLocalName(ISocket socket)
String getLocalAddress(ISocket socket)
int getLocalPort()
int getMapToPort()
getLocalPort is returned.void close()
throws IOExceptionIOException - if an I/O error occurs when closing the socket.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.