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.SocketControlMessage- Abstract: - No - Structure: - Gio.UnixCredentialsMessageClass- This - Gio.SocketControlMessagecontains a- Gio.Credentialsinstance. It may be sent using- Gio.Socket.send_message() and received using- Gio.Socket.receive_message() over UNIX sockets (ie: sockets in the- Gio.SocketFamily.UNIXfamily).- For an easier way to send and receive credentials over stream-oriented UNIX sockets, see - Gio.UnixConnection.send_credentials() and- Gio.UnixConnection.receive_credentials(). To receive credentials of a foreign process connected to a socket, use- Gio.Socket.get_credentials().- New in version 2.26. - 
classmethod is_supported()[source]¶
- Returns: - Trueif supported,- Falseotherwise- Return type: - bool- Checks if passing - Gio.Credentialson a- Gio.Socketis supported on this platform.- New in version 2.26. 
 - 
classmethod new()[source]¶
- Returns: - a new - Gio.UnixCredentialsMessage- Return type: - Gio.SocketControlMessage- Creates a new - Gio.UnixCredentialsMessagewith credentials matching the current processes.- New in version 2.26. 
 - 
classmethod new_with_credentials(credentials)[source]¶
- Parameters: - credentials ( - Gio.Credentials) – A- Gio.Credentialsobject.- Returns: - a new - Gio.UnixCredentialsMessage- Return type: - Gio.SocketControlMessage- Creates 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.Credentials- Gets the credentials stored in self. - New in version 2.26. 
 
- 
classmethod 
Property Details¶
- 
Gio.UnixCredentialsMessage.props.credentials¶
- Name: - credentials- Type: - Gio.Credentials- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The credentials stored in the message. - New in version 2.26.