1 /*
2 * Title: S/MIME Project
3 * Description: S/MIME email sending capabilities
4 * @Author Vladimir Radisic
5 * @Version 2.0.1
6 */
7
8
9 package org.webdocwf.util.smime.cms;
10
11
12 import org.webdocwf.util.smime.exception.SMIMEException;
13 import org.webdocwf.util.smime.der.DERClassContextSpecificPr;
14
15
16 /***
17 * Content class is DER encoded container, represented in ASN.1 notation
18 * according to RFC2630, used for storing contents of CMS object.<BR>
19 * <BR>
20 * content [0] EXPLICIT ANY DEFINED BY contentType<BR>
21 */
22 public class Content extends DERClassContextSpecificPr {
23
24 /***
25 * Constructs structured DER encoded object with tag Class Context Specific
26 * @param content0 byte array content for adding to instance of class Content
27 * @param structured0 type of content: structured (true) or primitive (false)
28 * @exception SMIMEException thrown from super class constructor or its
29 * addContent method.
30 */
31 public Content(byte[] content0, boolean structured0) throws SMIMEException {
32 super(0, structured0);
33 super.addContent(content0);
34 }
35 }
36
This page was automatically generated by Maven