# 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/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/ServerIdentity.java#L21
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-serveridentity-serveridentity/

Which tmux server a handle belongs to.

<p>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.

<p>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)
