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

@return access token
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseCredentials.java