8159488: Deprivilege java.xml.crypto

Update java.policy with the necessary permissions and minor code refactoring

Reviewed-by: mullan
5 files changed