Take a look at authentication packages like https://github.com/yammer/dropwizard-auth-ldap
Basically, you can create your own Authenticator, which you will use with the @User annotation on the resource endpoints. The only limitations that you have on Authenticators are that they return Optional any type you want.
This is really quite flexible, and if im not mistaken digest is just a base64 encoded string with the username: is the password malformed with the cleartext username?
so username: base64 (username: password)? It should be easy to quickly copy.
source share