KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > oyster > cms > Content


1 /*
2  * Title: Oyster Project
3  * Description: S/MIME email sending capabilities
4  * @Author Vladimir Radisic
5  * @Version 2.1.5
6  */

7
8
9 package org.enhydra.oyster.cms;
10
11 import org.enhydra.oyster.exception.SMIMEException;
12 import org.enhydra.oyster.der.DERClassContextSpecificPr;
13
14 /**
15  * Content class is DER encoded container, represented in ASN.1 notation
16  * according to RFC2630, used for storing contents of CMS object.<BR>
17  * <BR>
18  * content [0] EXPLICIT ANY DEFINED BY contentType<BR>
19  */

20 public class Content extends DERClassContextSpecificPr {
21
22 /**
23  * Constructs structured DER encoded object with tag Class Context Specific
24  * @param content0 byte array content for adding to instance of class Content
25  * @param structured0 type of content: structured (true) or primitive (false)
26  * @exception SMIMEException thrown from super class constructor or its
27  * addContent method.
28  */

29   public Content (byte[] content0, boolean structured0) throws SMIMEException
30   {
31     super(0, structured0);
32     super.addContent(content0);
33   }
34 }
35
36
37
38
Popular Tags