Gio.TlsConnection

const Gio = imports.gi.Gio;

let tlsConnection = new Gio.TlsConnection({
    base_io_stream: value,
    rehandshake_mode: value,
    require_close_notify: value,
    use_system_certdb: value,
});
  

Gio.TlsConnection is the base TLS connection class type, which wraps a Gio.IOStream and provides TLS encryption on top of it. Its subclasses, Gio.TlsClientConnection and Gio.TlsServerConnection, implement client-side and server-side TLS, respectively.

Since 2.28

Hierarchy

  • GObject.Object
    • Gio.IOStream
      • Gio.TlsConnection