WebKit.Credential

Fields

None

Methods

class

new (username, password, persistence)

class

new_for_certificate (certificate, persistence)

class

new_for_certificate_pin (pin, persistence)

copy ()

free ()

get_certificate ()

get_password ()

get_persistence ()

get_username ()

has_password ()

Details

class WebKit.Credential

Groups information used for user authentication.

New in version 2.2.

classmethod new(username, password, persistence)
Parameters:
Returns:

A WebKit.Credential.

Return type:

WebKit.Credential

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

New in version 2.2.

classmethod new_for_certificate(certificate, persistence)
Parameters:
Returns:

A WebKit.Credential.

Return type:

WebKit.Credential

Create a new credential from the certificate and persistence mode.

Note that WebKit.CredentialPersistence.PERMANENT is not supported for certificate credentials.

New in version 2.34.

classmethod new_for_certificate_pin(pin, persistence)
Parameters:
Returns:

A WebKit.Credential.

Return type:

WebKit.Credential

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

Note that WebKit.CredentialPersistence.PERMANENT is not supported for certificate pin credentials.

New in version 2.34.

copy()
Returns:

A copy of passed in WebKit.Credential

Return type:

WebKit.Credential

Make a copy of the WebKit.Credential.

New in version 2.2.

free()

Free the WebKit.Credential.

New in version 2.2.

get_certificate()
Returns:

a Gio.TlsCertificate, or None

Return type:

Gio.TlsCertificate

Get the certificate currently held by this WebKit.Credential.

New in version 2.34.

get_password()
Returns:

The password stored in the WebKit.Credential.

Return type:

str

Get the password currently held by this WebKit.Credential.

New in version 2.2.

get_persistence()
Returns:

The WebKit.CredentialPersistence stored in the WebKit.Credential.

Return type:

WebKit.CredentialPersistence

Get the persistence mode currently held by this WebKit.Credential.

New in version 2.2.

get_username()
Returns:

The username stored in the WebKit.Credential.

Return type:

str

Get the username currently held by this WebKit.Credential.

New in version 2.2.

has_password()
Returns:

True if the credential has a password or False otherwise.

Return type:

bool

Determine whether this credential has a password stored.

New in version 2.2.