KeyStoreWrapper()
Wraps the critical functions around a Java KeyStore to better facilitate testing and instrumenting.