0

我必须在 Android 中开发一个数字签名应用程序,它允许使用私钥对文档进行签名,这对于 Andorid 4.0 来说相当简单,因为有一个名为 android.security 的特定库可以执行此操作,但在较低的 API 中它没有存在。

主要问题是从手机中提取凭据,在 Android 4.0 中,使用“KeyChan”类非常容易,但在 Andorid 2.3 中我完全迷路了。

我可以重用整个代码,但类:

  • android.security.KeyChain;
  • android.security.KeyChainAliasCallback;
  • android.security.KeyChainException;

有什么想法或建议吗?有人知道Android 2.3 中是否有类似于“android.security”的库吗?

4

1 回答 1

1

Well, after a huge research I find out that is impossible to get access to the default device's KeyStore (actually is possible but just to get CA certificates not custom) before 4.0, the best solution is the creation of your default KeyStore in Java for your app.

于 2012-12-13T10:24:40.937 回答