Digest authentication with Jetty Websocket client
<p>I want to write a Java Websocket client which needs digest authentication to authenticate at a server.</p>

<p>I played around with the <a href="https://www.eclipse.org/jetty/documentation/9.3.x/jetty-websocket-client-api.html" rel="nofollow noreferrer">Jetty Websocket client example</a> but I have no idea how to easily add the digest authentication. Furthermore I found no online resources which give a hint on how it could be done.</p>

<p>I also find it quite hard to find information online as most people use Jetty as server (obviously). For example this is not a duplicate: <a href="https://stackoverflow.com/questions/27897990/how-to-authenticate-websocket-client-in-jetty">How to authenticate websocket client in jetty?</a></p>

<p>Therefore I am wondering if it is possible to use digest authentication with the Jetty Websocket client?</p>