8159488: Deprivilege java.xml.cryptoSummary: Update java.policy with the necessary permissions and minor code refactoringReviewed-by: mullan