JaasSecurityDomain fails to decrypt some PBE passwords

Details

Description

Certain passwords when encrypted with PBE result in a String with leading zeros. These leading zeros are not printed with the String so decrypting the password fails because of invalid number of bytes. An exception is thrown: