Credential.newForCertificatePin

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

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

class Credential
static
newForCertificatePin

Parameters

pin string

The PIN for the new credential

persistence webkit.types.CredentialPersistence

The #WebKitCredentialPersistence of the new credential

Return Value

Type: webkit.credential.Credential

A #WebKitCredential.