newForCertificate

fun newForCertificate(certificate: <Error class: unknown class>? = null, persistence: CredentialPersistence): Credential

Create a new credential from the @certificate and persistence mode.

Note that %WEBKIT_CREDENTIAL_PERSISTENCE_PERMANENT is not supported for certificate credentials.

Return

A #WebKitCredential.

Since

2.34

Parameters

certificate

The #GTlsCertificate, or null

persistence

The #WebKitCredentialPersistence of the new credential