I have a requirement to perform HTTP authentication logic within a servlet application, rather than delegating this task to the container.
Specifically, I need a way of taking the headers of an HttpServletRequest
which contains HTTP auth headers, and having them decoded into a data structure representing the supplied credentials, which the application can then process. Both basic and digest auth should be supported.
I could write this by hand, it wouldn't be too much of a chore, the RFCs are all well documented, but I'd quite like to use an off-the shelf library to do it for me.
My first thought was Spring Security, but from what I can tell this delegates this task to the container (I'm a bit unclear on that, it's a complicated code base).
Anyone know of any others?