Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个已签名的 CMS,想知道如何使用 Bouncy Castle API 删除签名,以便我可以清楚地访问下面的纯文本文件?
谢谢
像这样的东西可能会起作用:
CMSSignedData signedData = new CMSSignedData(signedFileBytes); // Now get the content contained in the CMS EncapsulatedContentInfo CMSProcessable processable = signedData.getSignedContent();
然后,您应该能够获得一个可处理的流,从中可以读取数据。