AuthenticationRequest
Object Hierarchy:
WebKit.AuthenticationRequest
WebKit.AuthenticationRequest
WebKit.AuthenticationRequest
GLib.Object
GLib.Object
GLib.Object->WebKit.AuthenticationRequest
Description:
[ CCode ( type_id = "webkit_authentication_request_get_type ()" ) ]public class AuthenticationRequest : Object
Represents an authentication request.
Whenever a client attempts to load a page protected by HTTP authentication, credentials will need to be provided to authorize access. To
allow the client to decide how it wishes to handle authentication, WebKit will fire a
authenticate signal with a WebKitAuthenticationRequest object to provide
client side authentication support. Credentials are exposed through the Credential
object.
In case the client application does not wish to handle this signal WebKit will provide a default handler. To handle authentication
asynchronously, simply increase the reference count of the WebKitAuthenticationRequest object.
Content:
Creation methods:
Methods:
public void authenticate (Credential ? credential)
Authenticate the AuthenticationRequest .
public bool can_save_credentials ()
Determine whether this AuthenticationRequest
should allow the storage of credentials.
public void cancel ()
Cancel the authentication challenge.
public TlsPasswordFlags get_certificate_pin_flags ()
Get the TlsPasswordFlags of the
webkit_authentication_scheme_client_certificate_pin_requested authentication challenge.
public unowned string get_host ()
Get the host that this authentication challenge is applicable to.
public uint get_port ()
Get the port that this authentication challenge is applicable to.
public Credential get_proposed_credential ()
Get the Credential
of the proposed authentication challenge.
public unowned string get_realm ()
Get the realm that this authentication challenge is applicable to.
public AuthenticationScheme get_scheme ()
Get the authentication scheme of the authentication challenge.
public SecurityOrigin get_security_origin ()
Get the
SecurityOrigin that this authentication challenge is applicable to.
public bool is_for_proxy ()
Determine whether the authentication challenge is associated with a
proxy server.
public bool is_retry ()
Determine whether this this is a first attempt or a retry for this
authentication challenge.
public void set_can_save_credentials (bool enabled)
Set whether the authentication method associated with
this should allow the storage of credentials.
public void set_proposed_credential (Credential credential)
Set the Credential
of the proposed authentication challenge.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref