Implement all functions in KeyStoreUtils.java