TlsDatabase

open class TlsDatabase(pointer: <Error class: unknown class><<Error class: unknown class>>)

GTlsDatabase is used to look up certificates and other information from a certificate or key store. It is an abstract base class which TLS library specific subtypes override.

A GTlsDatabase may be accessed from multiple threads by the TLS backend. All implementations are required to be fully thread-safe.

Most common client applications will not directly interact with GTlsDatabase. It is used internally by class@Gio.TlsConnection.

Skipped during bindings generation

  • parameter issuer_raw_dn: Array parameter of type guint8 is not supported

  • parameter issuer_raw_dn: Array parameter of type guint8 is not supported

Since

2.30

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioTlsDatabasePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Create a handle string for the certificate. The database will only be able to create a handle for certificates that originate from the database. In cases where the database cannot create a handle for a certificate, null will be returned.

Link copied to clipboard
open fun lookupCertificateForHandle(handle: String, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificate?>

Look up a certificate by its handle.

Link copied to clipboard
open fun lookupCertificateForHandleAsync(handle: String, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously look up a certificate by its handle in the database. See g_tls_database_lookup_certificate_for_handle() for more information.

Link copied to clipboard
open fun lookupCertificateForHandleFinish(result: AsyncResult): <Error class: unknown class><TlsCertificate>

Finish an asynchronous lookup of a certificate by its handle. See g_tls_database_lookup_certificate_for_handle() for more information.

Link copied to clipboard
open fun lookupCertificateIssuer(certificate: TlsCertificate, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificate>

Look up the issuer of @certificate in the database. The #GTlsCertificate:issuer property of @certificate is not modified, and the two certificates are not hooked into a chain.

Link copied to clipboard
open fun lookupCertificateIssuerAsync(certificate: TlsCertificate, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously look up the issuer of @certificate in the database. See g_tls_database_lookup_certificate_issuer() for more information.

Link copied to clipboard
open fun lookupCertificateIssuerFinish(result: AsyncResult): <Error class: unknown class><TlsCertificate>

Finish an asynchronous lookup issuer operation. See g_tls_database_lookup_certificate_issuer() for more information.

Link copied to clipboard
open fun lookupCertificatesIssuedByFinish(result: AsyncResult): <Error class: unknown class><<Error class: unknown class>>

Finish an asynchronous lookup of certificates. See g_tls_database_lookup_certificates_issued_by() for more information.

Link copied to clipboard
open fun verifyChain(chain: TlsCertificate, purpose: String, identity: SocketConnectable? = null, interaction: TlsInteraction? = null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificateFlags>

Determines the validity of a certificate chain, outside the context of a TLS session.

Link copied to clipboard
open fun verifyChainAsync(chain: TlsCertificate, purpose: String, identity: SocketConnectable? = null, interaction: TlsInteraction? = null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. See g_tls_database_verify_chain() for more information.

Link copied to clipboard
open fun verifyChainFinish(result: AsyncResult): <Error class: unknown class><TlsCertificateFlags>

Finish an asynchronous verify chain operation. See g_tls_database_verify_chain() for more information.