starttls


Description:

[ Version ( since = "3.12" ) ]
public IOStream? starttls (IOStream base_stream) throws Error

Creates a TlsClientConnection wrapping base_stream, which is assumed to communicate with the server identified by this's connectable.

This should typically be called after issuing a STARTTLS command to a server to initiate a Transport Layer Security handshake.

Parameters:

this

a NetworkService

base_stream

a IOStream

Returns:

the new TlsClientConnection, or null on error