webkit.credential
Module for [Credential] class
class Credential
Types 1
classCredential : gobject.boxed.Boxed
Groups information used for user authentication.
Methods
webkit.credential.Credential newForCertificate(gio.tls_certificate.TlsCertificate certificate, webkit.types.CredentialPersistence persistence) static nothrowCreate a new credential from the certificate and persistence mode.webkit.credential.Credential newForCertificatePin(string pin, webkit.types.CredentialPersistence persistence) static nothrowCreate a new credential from the provided PIN and persistence mode.webkit.credential.Credential copy() nothrowMake a copy of the #WebKitCredential. Returns: A copy of passed in #WebKitCredentialgio.tls_certificate.TlsCertificate getCertificate() nothrowGet the certificate currently held by this #WebKitCredential. Returns: a #GTlsCertificate, or nullstring getPassword() nothrowGet the password currently held by this #WebKitCredential. Returns: The password stored in the #WebKitCredential.webkit.types.CredentialPersistence getPersistence() nothrowGet the persistence mode currently held by this #WebKitCredential. Returns: The #WebKitCredentialPersistence stored in the #WebKitCredential.string getUsername() nothrowGet the username currently held by this #WebKitCredential. Returns: The username stored in the #WebKitCredential.bool hasPassword() nothrowDetermine 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.