991347 wrote:is all this work done during that writeTo() method call?
yes, applet & app are on the same computer. my applet is creating the mime message.
actually it's embedded into a webmail, it takes the parts from the web form and create the message. and then it applies SMIME signature on it via user's smart card. and final signed message is streamed to the server side.