We generally try and avoid optional arguments in the public hazmat APIs. I think it's fine to make the user put a DSAParameters.generate() call in themselves when generating a new private key.