KeyStore字符串和别名?

时间:2016-07-07 16:27:44

标签: java android cryptography bouncycastle keystore

我在这个论坛和其他人上阅读了很多相互矛盾的信息。有人说你不能和别人举例说明方法。 我的setEntry()似乎工作正常。 但getEntry()总是捕获UnrecoverableEntryException / UnrecoverableKeyEntryException / CipherTextException。

我的问题:
1)如何将别名与String关联并存储到我的KeyStore中? (我存储/检索我的Keypair(priv / pub)没有问题) 2)我的setEntry()是否正确?
3)为什么我的getEntry()失败?
4)“Entry”,“KeyEntry”和“SecretKeyEntry”之间有什么区别? (那些只是Bouncy术语或通用加密术语吗?)。

context.getBeanFactory().registerSingleton("customEventHandler",
            new CustomEventHandler());

0 个答案:

没有答案