|
Hi All,
I am trying to access the javakey database but
with no luck.
My code is as foll.
--------------------------------------------------------------------------------------
IdentityScope ss =
IdentityScope.getSystemScope();
Signer sig = (Signer) ss.getIdentity("newsigner"); System.out.println("sig="+sig); PrivateKey priv = sig.getPrivateKey();
PublicKey pub = sig.getPublicKey(); -------------------------------------------------------------------------------------- throws Exception as foll.
sig =null
Exception in thread "main" java.lang.NullPointerException at SigFile.main(SigFile.java, Compiled Code) I have created a new entry in javakey database as
foll.
javakey c newsigner true
Is there any other way round for this
solution?
Sorry that this is not a swing question. But I
am desperate for the solution.
Can anybody help me regarding this.
Thanks in advance.
__Pravin
|
