Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find class org.bouncycastle.cms.CMSSignedData

I have to load and verify pkcs7 file in java. I found many tutorials that talk about CMSSignedData but I can't find the package org.bouncycastle.cms.*, there is just org.bouncycastle.asn1.cms.* and it doesn't contain the class CMSSignedData.

I downloaded these libraries: bcprov-jdk15on-152.jar, bcprov-ext-jdk15on-152.jar and bcmail-jdk15on-152.jar.

Is there other package that I didn't add ?

like image 664
Hakim Avatar asked Feb 18 '26 23:02

Hakim


1 Answers

Finally I found the answer, the bcpkix-jdk15on-152.jar was missing. The class CMSSignedData is embedded in this jar.

Most tutorials that i followed mentioned that only the three jar above are necessary.

like image 68
Hakim Avatar answered Feb 20 '26 12:02

Hakim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!