>From Kitkat
><http://developer.android.com/about/versions/android-4.3.html>release notes:
Android now offers a custom Java Security Provider in the
KeyStore<http://developer.android.com/reference/java/security/KeyStore.html>facility,
called Android Key Store, which allows you to generate and save
private keys that may be seen and used by only your app.
When I tried to store a SecretKey, I get exception.
"Entry must be a PrivateKeyEntry or
TrustedCertificateEntry; was " + entry);
So, is there a way to store a secret key? This key should be available only
to my app (not even user). I plan to use it to verify things like trials,
purchases, etc. (and to avoid server calls for this purpose) in my app.
I tried to generate a keypair and store the private key, but I need to
provide a certificate chain. How can I generate a self signed certificate
in app's code and use it for this purpose (chain of 1 certificate)? Is this
even a correct usage?
Thanks for your time.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.