:right-sidebar: True TlsCertificateFlags =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.28 .. class:: TlsCertificateFlags :no-contents-entry: A set of flags describing TLS certification validation. This can be used to describe why a particular certificate was rejected (for example, in :obj:`~gi.repository.Gio.TlsConnection`\::accept-certificate). GLib guarantees that if certificate verification fails, at least one flag will be set, but it does not guarantee that all possible flags will be set. Accordingly, you may not safely decide to ignore any particular type of error. For example, it would be incorrect to mask :const:`~gi.repository.Gio.TlsCertificateFlags.EXPIRED` if you want to allow expired certificates, because this could potentially be the only error flag set even if other problems exist with the certificate. Fields ------ .. rst-class:: interim-class .. class:: TlsCertificateFlags :no-index: .. attribute:: BAD_IDENTITY The type of the None singleton. .. attribute:: EXPIRED The type of the None singleton. .. attribute:: GENERIC_ERROR The type of the None singleton. .. attribute:: INSECURE The type of the None singleton. .. attribute:: NOT_ACTIVATED The type of the None singleton. .. attribute:: NO_FLAGS The type of the None singleton. .. attribute:: REVOKED The type of the None singleton. .. attribute:: UNKNOWN_CA The type of the None singleton. .. attribute:: VALIDATE_ALL The type of the None singleton.