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

certificateThe #GTlsCertificate, or null
persistenceThe #WebKitCredentialPersistence of the new credential

Returns

A #WebKitCredential.