_data = data;
try
{
ASN1StreamParser in = new ASN1StreamParser(data, CMSUtils.getMaximumMemory());
_contentInfo = new ContentInfoParser((ASN1SequenceParser)in.readObject());
}
catch (IOException e)
{
throw new CMSException("IOException reading content.", e);
}
catch (ClassCastException e)
{
throw new CMSException("Unexpected object reading content.", e);
}