Gio.UnixCredentialsMessage¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | Gio.SocketControlMessage (5), GObject.Object (37) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | is_supported () |
| class | new () |
| class | new_with_credentials (credentials) |
get_credentials () |
Virtual Methods¶
| Inherited: | Gio.SocketControlMessage (4), GObject.Object (7) |
|---|
Properties¶
| Name | Type | Flags | Short Description |
|---|---|---|---|
credentials |
Gio.Credentials |
r/w/co | The credentials stored in the message |
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Fields¶
| Inherited: | GObject.Object (1) |
|---|
| Name | Type | Access | Description |
|---|---|---|---|
| parent_instance | Gio.SocketControlMessage |
r |
Class Details¶
-
class
Gio.UnixCredentialsMessage(**kwargs)¶ Bases: Gio.SocketControlMessageAbstract: No Structure: Gio.UnixCredentialsMessageClassThis
Gio.SocketControlMessagecontains aGio.Credentialsinstance. It may be sent usingGio.Socket.send_message() and received usingGio.Socket.receive_message() over UNIX sockets (ie: sockets in theGio.SocketFamily.UNIXfamily).For an easier way to send and receive credentials over stream-oriented UNIX sockets, see
Gio.UnixConnection.send_credentials() andGio.UnixConnection.receive_credentials(). To receive credentials of a foreign process connected to a socket, useGio.Socket.get_credentials().New in version 2.26.
-
classmethod
is_supported()[source]¶ Returns: Trueif supported,FalseotherwiseReturn type: boolChecks if passing
Gio.Credentialson aGio.Socketis supported on this platform.New in version 2.26.
-
classmethod
new()[source]¶ Returns: a new Gio.UnixCredentialsMessageReturn type: Gio.SocketControlMessageCreates a new
Gio.UnixCredentialsMessagewith credentials matching the current processes.New in version 2.26.
-
classmethod
new_with_credentials(credentials)[source]¶ Parameters: credentials ( Gio.Credentials) – AGio.Credentialsobject.Returns: a new Gio.UnixCredentialsMessageReturn type: Gio.SocketControlMessageCreates a new
Gio.UnixCredentialsMessageholding credentials.New in version 2.26.
-
get_credentials()[source]¶ Returns: A Gio.Credentialsinstance. Do not free, it is owned by self.Return type: Gio.CredentialsGets the credentials stored in self.
New in version 2.26.
-
classmethod
Property Details¶
-
Gio.UnixCredentialsMessage.props.credentials¶ Name: credentialsType: Gio.CredentialsDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe credentials stored in the message.
New in version 2.26.