InfGtk.CertificateDialog¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The certificate chain to show in the dialog |
||
r/w |
Host name of the server from which the certificate is |
||
r/w |
The certificate that we had pinned for this host |
||
r/w |
What warnings about the certificate to display |
Style Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class InfGtk.CertificateDialog(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
InfGtk.CertificateDialog
is an opaque data type. You should only access it via the public API functions.- classmethod new(parent, dialog_flags, verify_flags, hostname, certificate_chain, pinned_certificate)¶
- Parameters:
parent (
Gtk.Window
) – ParentGtk.Window
of the dialog.dialog_flags (
Gtk.DialogFlags
) – Flags for the dialog, seeGtk.DialogFlags
.verify_flags (
Infinity.CertificateVerifyFlags
) – What certificate warnings to show, seeInfinity.CertificateVerifyFlags
.hostname (
str
) – The host name of the server that provides the certificate.certificate_chain (
Infinity.CertificateChain
) – The certificate chain provided by the server.pinned_certificate (
InfGnutls.X509Crt
) – The certificate that we had pinned for this host, orNone
.
- Returns:
A new
InfGtk.CertificateDialog
.- Return type:
Creates a new
InfGtk.CertificateDialog
. AInfGtk.CertificateDialog
shows a warning about a server’s certificate to a user, for example when the issuer is not trusted or the hostname does not match what the certificate was issued to.
Property Details¶
- InfGtk.CertificateDialog.props.certificate_chain¶
- Name:
certificate-chain
- Type:
- Default Value:
- Flags:
The certificate chain to show in the dialog
- InfGtk.CertificateDialog.props.hostname¶
-
Host name of the server from which the certificate is
- InfGtk.CertificateDialog.props.pinned_certificate¶
-
The certificate that we had pinned for this host
- InfGtk.CertificateDialog.props.verify_flags¶
- Name:
verify-flags
- Type:
- Default Value:
0
- Flags:
What warnings about the certificate to display