new AlgorithmId[] { AlgorithmId.get("SHA1") },
new ContentInfo(ContentInfo.DATA_OID, null),
new X509Certificate[] { publicKey },
new SignerInfo[] { signerInfo });
pkcs7.encodeSignedData(out);
}
/** Copy all the files in a manifest from input to output. */
private static void copyFiles(Manifest manifest,
JarFile in, JarOutputStream out) throws IOException {