makeConnectionSecure
makeConnectionSecure(): Boolean;
The makeConnectionSecure method of the TcpIpConnection class uses the Opportunistic Transport Layer Security (OTLS) to make the TCP/IP connection secure.
This method returns true if it succeeds or it raises an exception if it fails, as follows.
-
Exception 31011 (Connection invalid state for requested operation) is raised if the connection is not connected or the setConnectionTypeName method has not been called with a connection name that is marked to support OTLS.
-
Exception 31029 (Connection encryption error) is raised if the TLS handshake fails.
For details, see "
2022.0.01 and higher