public String getUserName() {
        if (useAccessToken()) {
            throw new IllegalStateException("No user name and password specified, please use access token instead.");
        }
        return this.userName;
    }
Get user name.

@return user name
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseCredentials.java