code: public ClientCredentials getCredentials() {
          final Pointer<Integer> pid = nref(0);
          final Pointer<Integer> uid = nref(0);
          final Pointer<Integer> gid = nref(0);
  
          WaylandServerCore.INSTANCE()
                           .wl_client_get_credentials(this.pointer,
                                                      pid.address,
                                                      uid.address,
                                                      gid.address);
  
          return new ClientCredentials(pid.get(),
                                       uid.get(),
                                       gid.get());
      }
docs: Return Unix credentials for the client
  <p/>
  This function returns the process ID, the user ID and the group ID
  for the given client.  The credentials come from getsockopt() with
  SO_PEERCRED, on the client socket fd.
  <p/>
  Be aware that for clients that a compositor forks and execs and
  then connects using socketpair(), this function will return the
  credentials for the compositor.  The credentials for the socketpair
  are set at creation time in the compositor.