webkit.credential
Module for [Credential] class
class Credential
Types 1
classCredential : gobject.boxed.Boxed
Groups information used for user authentication.
Methods
Credential self()Returns `this`, for use in `with` statements.webkit.credential.Credential newForCertificate(gio.tls_certificate.TlsCertificate certificate, webkit.types.CredentialPersistence persistence)Create a new credential from the certificate and persistence mode.webkit.credential.Credential newForCertificatePin(string pin, webkit.types.CredentialPersistence persistence)Create a new credential from the provided PIN and persistence mode.webkit.credential.Credential copy()Make a copy of the #WebKitCredential. Returns: A copy of passed in #WebKitCredentialgio.tls_certificate.TlsCertificate getCertificate()Get the certificate currently held by this #WebKitCredential. Returns: a #GTlsCertificate, or nullstring getPassword()Get the password currently held by this #WebKitCredential. Returns: The password stored in the #WebKitCredential.webkit.types.CredentialPersistence getPersistence()Get the persistence mode currently held by this #WebKitCredential. Returns: The #WebKitCredentialPersistence stored in the #WebKitCredential.string getUsername()Get the username currently held by this #WebKitCredential. Returns: The username stored in the #WebKitCredential.bool hasPassword()Determine whether this credential has a password stored. Returns: true if the credential has a password or false otherwise.Constructors
this(string username, string password, webkit.types.CredentialPersistence persistence)Create a new credential from the provided username, password and persistence mode.