Gio.TlsDatabase::lookup_certificate_for_handle
function vfunc_lookup_certificate_for_handle(handle: String, interaction: Gio.TlsInteraction, flags: Gio.TlsDatabaseLookupFlags, cancellable: Gio.Cancellable): Gio.TlsCertificate { }
Lookup a certificate by its handle.
The handle should have been created by calling Gio.TlsDatabase.prototype.create_certificate_handle on a Gio.TlsDatabase object of the same TLS backend. The handle is designed to remain valid across instantiations of the database.
If the handle is no longer valid, or does not point to a certificate in this database, then null will be returned.
This function can block, use Gio.TlsDatabase.prototype.lookup_certificate_for_handle_async to perform the lookup operation asynchronously.
Since 2.30
- handle
a certificate handle
- interaction
used to interact with the user if necessary
- flags
Flags which affect the lookup.
- cancellable
a Gio.Cancellable, or null
- Returns
a newly allocated Gio.TlsCertificate, or null. Use GObject.Object.prototype.unref to release the certificate.