On Apple operating systems (including iOS, tvOS, and macOS), the native credential
type is a struct xucred. This corresponds to gio.types.CredentialsType.AppleXucred.
On Solaris (including OpenSolaris and its derivatives), the native credential type
is a ucred_t. This corresponds to gio.types.CredentialsType.SolarisUcred.
Since GLib 2.72, on Windows, the native credentials may contain the PID of a
process. This corresponds to gio.types.CredentialsType.Win32Pid.
The gio.credentials.Credentials type is a reference-counted wrapper for native credentials.
The information in gio.credentials.Credentials 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. gio.socket.Socket.getCredentials.
Some operating systems supports securely sending and receiving credentials over a Unix Domain Socket, see gio.unix_credentials_message.UnixCredentialsMessage, gio.unix_connection.UnixConnection.sendCredentials and gio.unix_connection.UnixConnection.receiveCredentials for details.
On Linux, the native credential type is a struct ucred - see the `unix(7)` man page for details. This corresponds to gio.types.CredentialsType.LinuxUcred.
On Apple operating systems (including iOS, tvOS, and macOS), the native credential type is a struct xucred. This corresponds to gio.types.CredentialsType.AppleXucred.
On FreeBSD, Debian GNU/kFreeBSD, and GNU/Hurd, the native credential type is a struct cmsgcred. This corresponds to gio.types.CredentialsType.FreebsdCmsgcred.
On NetBSD, the native credential type is a struct unpcbid. This corresponds to gio.types.CredentialsType.NetbsdUnpcbid.
On OpenBSD, the native credential type is a struct sockpeercred. This corresponds to gio.types.CredentialsType.OpenbsdSockpeercred.
On Solaris (including OpenSolaris and its derivatives), the native credential type is a ucred_t. This corresponds to gio.types.CredentialsType.SolarisUcred.
Since GLib 2.72, on Windows, the native credentials may contain the PID of a process. This corresponds to gio.types.CredentialsType.Win32Pid.