Credential.newForCertificatePin

webkit.credential.Credential newForCertificatePin(string pin, webkit.types.CredentialPersistence persistence)

Create a new credential from the provided PIN and persistence mode.

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

Parameters

pinThe PIN for the new credential
persistenceThe #WebKitCredentialPersistence of the new credential

Returns

A #WebKitCredential.