WebKit2.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 WebKit2.Credential

Groups information used for user authentication.

New in version 2.2.

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

A WebKit2.Credential.

Return type:

WebKit2.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 WebKit2.Credential.

Return type:

WebKit2.Credential

Create a new credential from the certificate and persistence mode.

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

New in version 2.34.

classmethod new_for_certificate_pin(pin, persistence)
Parameters:
Returns:

A WebKit2.Credential.

Return type:

WebKit2.Credential

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

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

New in version 2.34.

copy()
Returns:

A copy of passed in WebKit2.Credential

Return type:

WebKit2.Credential

Make a copy of the WebKit2.Credential.

New in version 2.2.

free()

Free the WebKit2.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 WebKit2.Credential.

New in version 2.34.

get_password()
Returns:

The password stored in the WebKit2.Credential.

Return type:

str

Get the password currently held by this WebKit2.Credential.

New in version 2.2.

get_persistence()
Returns:

The WebKit2.CredentialPersistence stored in the WebKit2.Credential.

Return type:

WebKit2.CredentialPersistence

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

New in version 2.2.

get_username()
Returns:

The username stored in the WebKit2.Credential.

Return type:

str

Get the username currently held by this WebKit2.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.