如何用证书签署PDF文档(签名算法为ECDSA和带有Java的premium256v1私钥类型)?
我尝试了以下代码:
ExternalSignature es = new PrivateKeySignature(privateKey, "SHA-256", "BC");
ExternalDigest digest = new BouncyCastleDigest();
MakeSignature.signDetached(appearance, digest, es, chain, null, null, null, 0, CryptoStandard.CMS);
问题:键的类型。