Class
SoupAuth
Description [src]
abstract class Soup.Auth : GObject.Object {
parent_instance: GObject
}
The abstract base class for handling authentication.
Specific HTTP Authentication mechanisms are implemented by its subclasses, but applications never need to be aware of the specific subclasses being used.
SoupAuth
objects store the authentication data associated with a given bit
of web space. They are created automatically by SoupSession
.
Instance methods
soup_auth_can_authenticate
Tests if auth
is able to authenticate by providing credentials to the
soup_auth_authenticate()
.
soup_auth_is_for_proxy
Tests whether or not auth
is associated with a proxy server rather
than an “origin” server.
soup_auth_update
Updates auth
with the information from msg
and auth_header
,
possibly un-authenticating it.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct SoupAuthClass {
GObjectClass parent_class;
const char* scheme_name;
guint strength;
gboolean (* update) (
SoupAuth* auth,
SoupMessage* msg,
GHashTable* auth_header
);
GSList* (* get_protection_space) (
SoupAuth* auth,
GUri* source_uri
);
void (* authenticate) (
SoupAuth* auth,
const char* username,
const char* password
);
gboolean (* is_authenticated) (
SoupAuth* auth
);
char* (* get_authorization) (
SoupAuth* auth,
SoupMessage* msg
);
gboolean (* is_ready) (
SoupAuth* auth,
SoupMessage* msg
);
gboolean (* can_authenticate) (
SoupAuth* auth
);
None padding;
}
Class members
parent_class: GObjectClass
- No description available.
scheme_name: const char*
- No description available.
strength: guint
- No description available.
update: gboolean (* update) ( SoupAuth* auth, SoupMessage* msg, GHashTable* auth_header )
- No description available.
get_protection_space: GSList* (* get_protection_space) ( SoupAuth* auth, GUri* source_uri )
- No description available.
authenticate: void (* authenticate) ( SoupAuth* auth, const char* username, const char* password )
- No description available.
is_authenticated: gboolean (* is_authenticated) ( SoupAuth* auth )
- No description available.
get_authorization: char* (* get_authorization) ( SoupAuth* auth, SoupMessage* msg )
- No description available.
is_ready: gboolean (* is_ready) ( SoupAuth* auth, SoupMessage* msg )
- No description available.
can_authenticate: gboolean (* can_authenticate) ( SoupAuth* auth )
- No description available.
padding: None
- No description available.
Virtual methods
Soup.AuthClass.can_authenticate
Tests if auth
is able to authenticate by providing credentials to the
soup_auth_authenticate()
.
Soup.AuthClass.update
Updates auth
with the information from msg
and auth_header
,
possibly un-authenticating it.