mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-22 15:15:48 +00:00
Removed the regex to separate out the realm parameter and instead parse it with the other parameters into HeaderInfo. Changed HeaderInfo to store the parsed parameters as a Map instead of the un-parsed parameters in a string. The parsing of the parameters is now done in AuthenticationProtocolHandler.newHeaderInfo(String) and then passed into the HeaderInfo instead of Parsing it in DigestAuthentication. Replaced the usage of splitParams(String) with QuotedCSV used to parse the parameters. Added test to check the ordering of parameters doesn't matter. Allow not to have a realm parameter, changed DigestAuthentication.matches() to not match if realm is null, so that Digest Authentication requires realm parameter but any Basic Authentication can be done without it. There is currently no tests for this. Signed-off-by: Lachlan Roberts <lachlan@webtide.com>