Parsing CMS using JSS
<p>I want to use the JSS library just to parse the CMS package into the specific structures that are provided by JSS.  I can get the signedData, then I call signedData.getContentInfo(), which gives me the encapsulatedContentInfo populated structure and this works fine.</p>

<p>The problem: The encapsulatedContentInfo now contains a id-ct-KP-encryptedKeyPkg. How do I proceed with my parsing from here? The encapsulatedContentInfo.getContent() returns an OCTET_STRING but I dont know what to do with it from here.</p>

<p>The data should be enveloped data but I dont understand how to parse it.</p>

<pre><code>//encapsulated content info
EncapsulatedContentInfo encapInfo = signedData.getContentInfo();
//encapInfo = signedData.getContentInfo();
OBJECT_IDENTIFIER id = encapInfo.getContentType();
System.out.println("id-ct-KP-encryptedKeyPkg" + id.toString());
//the content is the encrypted key package
OCTET_STRING content = encapInfo.getContent();
</code></pre>

<p>I'm stuck here</p>
