Create a Signature object with the SignatureAlgorithm==SignatureAlgorithm.RSASignature.
This performs a raw RSA signature, which is really just an RSA encryption. This has not been well tested. Also, I don't think there's a way to do the decryption with the private key. Sameer Yami wrote: > Thanks for replying. > However, in the samples there is no RSA Public Key Encryption. > Any other pointers? > > Sameer Yami > > Ian McGreer wrote: > > >>Sameer Yami wrote: >> >>>Hi, >>>I am trying to write an application where I need to have the RSA public >>>key encryption, so that it is readable only by the entity with the >>>private key. I searched for any previous messages in this news group and >>> >>>also for possible documentation in JSS APIdocs but could not find any. >>>Can anybody tell me how it is done in JSS? >>> >>>thanks in advance >>>Sameer Yami >>> >>> >>> >>> >>There are some sample programs here that may help: >> >>http://lxr.mozilla.org/mozilla/source/security/jss/samples/ >> >>-Ian >> >
