# io.github.libtmux.ServerIdentity.ServerIdentity

- **Module:** io.github.libtmux.ServerIdentity
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/ServerIdentity.java#L21
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-serveridentity-serveridentity/

Which tmux server a handle belongs to.

Two entities with the same id are the same entity only if they came from the same server. The
realm exists because socket text alone is not enough: two unrelated execution realms — a local
process and a container, say — can both hold a server at {@code /tmp/s}, and entities from them
must not compare equal.

The server is identified by a digest of its endpoint rather than by the endpoint itself, so an
identity can be logged, compared and embedded in a message without carrying a socket path.

## Members

- `of` (method)
- `at` (method)
- `realm` (method): The execution realm the transport reaches tmux through.
- `server` (method): A stable opaque key for the server, carrying no socket path.
- `processId` (method): The live tmux process, present on an identity bound to a captured handle.
- `equals` (method)
- `hashCode` (method)
- `toString` (method)
