@Override
    public boolean equals(Object object) {

        // We are only comparing against other seats here
        assert(object instanceof Seat);
        Seat seat = (Seat) object;

        // The various properties will never be null
        assert(seat.username != null);
        assert(seat.identifier != null);

        return username.equals(seat.username)
            && identifier.equals(seat.identifier);

    }
Creates a new seat which associated the given user with the given
connection or connection group.

@param username
    The username of the user using this seat.

@param identifier
    The identifier of the connection or connection group associated with
    this seat.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/Seat.java