WebKit2.Credential¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class WebKit2.Credential¶
Groups information used for user authentication.
New in version 2.2.
- classmethod new(username, password, persistence)¶
- Parameters:
username (
str
) – The username for the new credentialpassword (
str
) – The password for the new credentialpersistence (
WebKit2.CredentialPersistence
) – TheWebKit2.CredentialPersistence
of the new credential
- Returns:
- Return type:
Create a new credential from the provided username, password and persistence mode.
New in version 2.2.
- classmethod new_for_certificate(certificate, persistence)¶
- Parameters:
certificate (
Gio.TlsCertificate
orNone
) – TheGio.TlsCertificate
, orNone
persistence (
WebKit2.CredentialPersistence
) – TheWebKit2.CredentialPersistence
of the new credential
- Returns:
- Return type:
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:
pin (
str
) – The PIN for the new credentialpersistence (
WebKit2.CredentialPersistence
) – TheWebKit2.CredentialPersistence
of the new credential
- Returns:
- Return type:
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:
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
, orNone
- Return type:
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:
Get the password currently held by this
WebKit2.Credential
.New in version 2.2.
- get_persistence()¶
- Returns:
The
WebKit2.CredentialPersistence
stored in theWebKit2.Credential
.- Return type:
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:
Get the username currently held by this
WebKit2.Credential
.New in version 2.2.