new

fun new(username: String, password: String, persistence: CredentialPersistence): Credential

Create a new credential from the provided username, password and persistence mode.

Return

A #WebKitCredential.

Since

2.2

Parameters

username

The username for the new credential

password

The password for the new credential

persistence

The #WebKitCredentialPersistence of the new credential