6996377: shrink duplicate code in the constructor of PKIXValidator

Reviewed-by: mullan, xuelei
2 files changed