KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > oyster > der > DERClassContextSpecific


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

7
8 package org.enhydra.oyster.der;
9
10 import org.enhydra.oyster.exception.SMIMEException;
11
12
13 /**
14  * DERClassContextSpecific can be both, primitive or structured type of DER
15  * encoded object with the context-specific class tag (part of object Identifier
16  * Octet) in ASN.1 notation. Difference bettween DERClassContextSpecific and
17  * DERClassContextSpecificPr is that class DERClassContextSpecific has public
18  * method addContent. Also, DERClassContextSpecific extends it's super class
19  * DERClassContextSpecificPr.
20  */

21 public class DERClassContextSpecific extends DERClassContextSpecificPr {
22
23 /**
24  * Constructs the structured or primitive DERClassContextSpecific object
25  * @param type0 define value of identifier octet
26  * @param structured0 used for defining structured complexity of Context Specific
27  * class (true means structured, and false means primitive)
28  * @exception SMIMEException thrown in super class constructor.
29  */

30   public DERClassContextSpecific (int type0, boolean structured0) throws SMIMEException
31   {
32     super(type0, structured0);
33   }
34
35 /**
36  * Adds content to DER encoded Context Specific Class Type
37  * @param content0 content for adding to Context Specific Class Type
38  * @exception SMIMEException when adding content to primitive
39  * DERClassContextSpecificPr object is performed more than once, or thrown in
40  * super class method addContent.
41  */

42   public void addContent (byte[] content0) throws SMIMEException {
43     super.addContent(content0);
44   }
45 }
46
47
48
49
Popular Tags