Store store = new Store(getApplicationContext());
if (!store.hasKey("12345")) {
SecretKey key = store.generateSymmetricKey("12345", null);
}
your code above.. I generated and presumeStore was set to the PIN number .. but when I went in it said the Store did not see the 12345 related key in the keystore and thus could not find it..
do I have to put something in the manifest ? as a lower activity creates the store from Store but when I re-enter the App .. how would I reference store from the ApplicationContext ? it seems to not find the key I stored in the last Activity and when I re-enter the App it cannot find the key :-(
missing something obvious ? in a droid setup ? for the manifest ? yes I need to persist stored entries in Store
Store store = new Store(getApplicationContext()); if (!store.hasKey("12345")) { SecretKey key = store.generateSymmetricKey("12345", null); }
your code above.. I generated and presumeStore was set to the PIN number .. but when I went in it said the Store did not see the 12345 related key in the keystore and thus could not find it..
do I have to put something in the manifest ? as a lower activity creates the store from Store but when I re-enter the App .. how would I reference store from the ApplicationContext ? it seems to not find the key I stored in the last Activity and when I re-enter the App it cannot find the key :-(
missing something obvious ? in a droid setup ? for the manifest ? yes I need to persist stored entries in Store