WebKit.Credential¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class WebKit.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 (
WebKit.CredentialPersistence
) – TheWebKit.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 (
WebKit.CredentialPersistence
) – TheWebKit.CredentialPersistence
of the new credential
- Returns:
- Return type:
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:
pin (
str
) – The PIN for the new credentialpersistence (
WebKit.CredentialPersistence
) – TheWebKit.CredentialPersistence
of the new credential
- Returns:
- Return type:
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:
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
, orNone
- Return type:
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:
Get the password currently held by this
WebKit.Credential
.New in version 2.2.
- get_persistence()¶
- Returns:
The
WebKit.CredentialPersistence
stored in theWebKit.Credential
.- Return type:
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:
Get the username currently held by this
WebKit.Credential
.New in version 2.2.