Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gio.Credentials

Class Gio.Credentials

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GCredentials
Class : Credentials
Extends: GObject.Object
The GCredentials type is a reference-counted wrapper for native
credentials. This information is typically used for identifying,
authenticating and authorizing other processes.
Some operating systems supports looking up the credentials of the
remote peer of a communication endpoint - see e.g.
g_socket_get_credentials().
Some operating systems supports securely sending and receiving
credentials over a Unix Domain Socket, see
GUnixCredentialsMessage, g_unix_connection_send_credentials() and
g_unix_connection_receive_credentials() for details.
On Linux, the native credential type is a struct ucred
- see the
unix7
man page for details. This corresponds to
G_CREDENTIALS_TYPE_LINUX_UCRED.
On FreeBSD, the native credential type is a struct cmsgcred.
This corresponds to G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED.
Properties
None
Methods / Constructors
Method / Constructor Defined By
 
new Gio.Credentials ()
Create a new Gio.Credentials
Create a new Gio.Credentials
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gio.DBusAuthObserver
Signal
authorize_authenticated_peer (DBusAuthObserver self, IOStream stream, Credentials credentials) : gboolean
Emitted to check if a peer that is successfully authenticated
is authorized.
Gio.DBusAuthObserver
Method
authorize_authenticated_peer (IOStream stream, Credentials credentials) : gboolean
Emits the GDBusAuthObserver::authorize-authenticated-peer signal on observer.
Gio.DBusConnection
Method
get_peer_credentials () : Gio.Credentials
Gets the credentials of the authenticated peer.
Gio.Socket
Method
get_credentials () : Gio.Credentials
Returns the credentials of the foreign process connected to this
socket, if any (e.g.
Gio.UnixConnection
Method
receive_credentials (Cancellable cancellable) : Gio.Credentials
Receives credentials from the sending end of the connection.
Gio.UnixCredentialsMessage
Property
credentials : Gio.Credentials
The credentials stored in the message.
Gio.UnixCredentialsMessage
Method
new Gio.UnixCredentialsMessage.with_credentials (Credentials credentials) : Gio.SocketControlMessage
Create a new Gio.UnixCredentialsMessage
Gio.UnixCredentialsMessage
Method
get_credentials () : Gio.Credentials
Gets the credentials stored in message.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:09 GMT+0800 (HKT)