Make key/trust store types configurable; add a test with host violation. * Fix some typos and code style in the related classed and docs * Add asserts for the store type properties * Changes for 5.0.x to disable by default, after cherry-pick.
Make key/trust store types configurable; add a test with host violation. * Fix some typos and code style in the related classed and docs * Add asserts for the store type properties * Changes for 5.0.x to disable by default, after cherry-pick.