Credential.newForCertificate

Create a new credential from the certificate and persistence mode.

Note that webkit.types.CredentialPersistence.Permanent is not supported for certificate credentials.

Parameters

certificate gio.tls_certificate.TlsCertificate

The #GTlsCertificate, or null

persistence webkit.types.CredentialPersistence

The #WebKitCredentialPersistence of the new credential

Return Value

Type: webkit.credential.Credential

A #WebKitCredential.