SignStream Method
Signs a stream.
Syntax
public void signStream(java.io.InputStream sourceStream, java.io.OutputStream destStream, boolean detached);
Remarks
Use this method to sign a stream and save the protected message to another stream.
Specify the signing key in Key property before commencing the signing. Note that the signing key must come with its private key.
Set Detached parameter to false to produce enveloped/enveloping, and not detached signature. Many encryption algorithms/modes do not support non-detached signatures.