How to get Signature part from ediintdata:TN

We are getting “ediintdata” as an incoming request. we are getting the full
content through “wm.tn.doc.getContentPartData”. But
we only need “signature” part from “ediintdata” content.


Content-type: multipart/signed; micalg=sha1; protocol=“application/pkcs7-signature”; boundary="----=_Part_1074_5090555.1182824078411"

Disposition-notification-to: DB-PRESIT

AS2-From: DB-PRESIT

AS2-To: RANG00001

AS2-Version: 1.1

Subject: DBDCRI SD=RANG00001,RV=DB-PRESIT,MF=UNEDIFACT,MT=PAYMUL,EN=T,PR=T

Message-ID: 27102191.1182824078442.JavaMail.sftadm@sinctdbdicd1.sg.db.com

Content-Length: 2093

------=_Part_1074_5090555.1182824078411

Content-Type: application/pkcs7-mime; smime-type=compressed-data; name=smime.p7z

Content-Transfer-Encoding: binary

Content-Disposition: attachment; filename=smime.p7z

------=_Part_1074_5090555.1182824078411

Content-Type: application/pkcs7-signature; name=smime.p7s

Content-Transfer-Encoding: base64

Content-Disposition: attachment; filename=smime.p7s

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAMYIB2zCCAdcC

AQEwgYAwezELMAkGA1UEBhMCU0cxEjAQBgNVBAgTCVNpbmdhcG9yZTENMAsGA1UEBxMEU2luZzEL

MAkGA1UEChMCREIxDjAMBgNVBAsTBVNhbGVzMRAwDgYDVQQDEwdoNzgwNTE1MRowGAYJKoZIhvcN

AQkBFgtwQGVtYWlsLmNvbQIBADAJBgUrDgMCGgUAoIGxMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0B

BwEwHAYJKoZIhvcNAQkFMQ8XDTA3MDYyNjAyMTQzOFowIwYJKoZIhvcNAQkEMRYEFItERFFeb6/y

VSmSDdeZJALyRdGdMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCA

MA0GCCqGSIb3DQMCAgFAMA0GCCqGSIb3DQMCAgEoMAcGBSsOAwIHMA0GCSqGSIb3DQEBAQUABIGA

P0sz47HNQAYmJbWGO6LCMq0Qna7Fi4hzohQotZCbrqiG6TDJ6lJ/ppJogwRcHJzZkQszIMd46moT

6f7QCdY8g1t6ZC8mAPJGK4O720W7Hdo2D7pZD4B2soFsdS7M0PQHfUNhM78AEaN2tXBvAbRGIcnO

nMYDyCi2c8RPMvdndTsAAAAAAAA=

------=_Part_1074_5090555.1182824078411–


If there is any method or service which can be useful then please let us
know.
Thanks in advance.
Sachin