Credential.newForCertificate
webkit.credential.Credential newForCertificate(gio.tls_certificate.TlsCertificate certificate, webkit.types.CredentialPersistence persistence)Create a new credential from the certificate and persistence mode.
Note that [webkit.types.CredentialPersistence.Permanent] is not supported for certificate credentials.
Parameters
certificate | The #GTlsCertificate, or null |
persistence | The #WebKitCredentialPersistence of the new credential |
Returns
A #WebKitCredential.