Verify SMIME Signature certificate with TN Profile

Hi,
I’m receiving an smime message, I can decrypt it, and verify the signature but how can i compare the signature within the message with the TN Profile/security/verify cert to make sure that this message was sent by this user?

Thanks

Hi,

I’m not able to decrypt an smime message received via email. The below error is thrown, java.lang.reflect.InvocationTargetException:javax.mail.internet.MimeMessage.getRawInputStream()Ljava/io/InputStream;
Any inputs from your end will be greatly helpfull.

Thanks for your time,
Ramya