GObject.Object
Gio.Credentials
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GCredentials |
Class : | Credentials |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gio.Credentials
()
Create a new Gio.Credentials
Create a new Gio.Credentials
|
||
get_unix_user
()
:
guint32
Tries to get the UNIX user identifier from credentials.
Tries to get the UNIX user identifier from credentials. This
method is only available on UNIX platforms. This operation can fail if GCredentials is not supported on the OS or if the native credentials type does not contain information about the UNIX user.
|
Gio.Credentials | |
is_same_user
(Credentials other_credentials)
:
gboolean
Checks if credentials and other_credentials is the same user.
Checks if credentials and other_credentials is the same user.
This operation can fail if GCredentials is not supported on the the OS. user, FALSE otherwise or if error is set.
|
Gio.Credentials | |
set_native
(CredentialsType native_type, void* native)
:
none
Copies the native credentials of type native_type from native
into credentials.
Copies the native credentials of type native_type from native
into credentials. It is a programming error (which will cause an warning to be logged) to use this method if there is no GCredentials support for the OS or if native_type isn't supported by the OS.
|
Gio.Credentials | |
Tries to set the UNIX user identifier on credentials.
Tries to set the UNIX user identifier on credentials. This method
is only available on UNIX platforms. This operation can fail if GCredentials is not supported on the OS or if the native credentials type does not contain information about the UNIX user.
|
Gio.Credentials | |
to_string
()
:
String
Creates a human-readable textual representation of credentials
that can be used in logging and debug messages.
Creates a human-readable textual representation of credentials
that can be used in logging and debug messages. The format of the returned string may change in future GLib release.
|
Gio.Credentials |
None |
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 |
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.
|