I have UsernamePasswordLoginModule working fine without password hashing. I added the following two lines application-policy for jmx-console in the login-config.xml:
<module-option name="hashAlgorithm">MDS</module-options>
<module-option name="hashEncoding">base64</module-option>
I changed the password from clear text to the Base64Encoder value and it does not validate.
What am I missing?
There are two mistakes in the posted code. It says "MDS" instead of "MD5", and "/module-options" instead of "/module-option".
Moral of the story: Log files are your friend.