pradeep1991singh/react-native-secure-key-store

Not using "AndroidKeyStore" ?

Opened this issue · 0 comments

Hi,

I would like to be able to call the equivalent java code:

KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore");
Certificate certificate = keyStore.getCertificate(CERT_ALIAS);
Key key = keyStore.getKey(KEY_ALIAS, null);
if (certificate != null && key != null) {
     certAvailable = true;
     return;
}

or

keyStore.setKeyEntry(KEY_ALIAS, generateKeyPair.getPrivate(), null, new Certificate[]{generate});
keyStore.setCertificateEntry(CERT_ALIAS, generate);

but in you code I can see a constant to "AndroidKeyStore" but it doesn't seem to be used.
So your library do not allow to access keystore ?