
Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
Thomas Weidenfeller ha scritto:
> > I need to save permanently a KeyPair Object (I mean a public RSA key
> > and a private RSA key). So I'm thinking to save it on a file protected
[quoted text clipped - 12 lines]
> ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
> http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
Ok so I create a keystore with:
KeyStore ks = KeyStore.getInstance("JKS");
Now how I can store the key? I've seen the comand:
setKeyEntry(String alias, byte[] key, Certificate[] chain)
but I've no certificate. Only the PrivateKey (to store) and the
password to safe it.
PS what "JKS"?
Thomas Weidenfeller - 18 Aug 2006 13:22 GMT
> Ok so I create a keystore with:
> KeyStore ks = KeyStore.getInstance("JKS");
> Now how I can store the key? I've seen the comand:
> setKeyEntry(String alias, byte[] key, Certificate[] chain)
> but I've no certificate.
Create one.
> Only the PrivateKey (to store) and the
> password to safe it.
> PS what "JKS"?
Please read Sun's documentation for a start:
http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
Night82 - 21 Aug 2006 08:50 GMT
In order to use the Signature with the algorithm "SHA1withDSA", what
provider have I to install?