01: /*
02: * Title: Oyster Project
03: * Description: S/MIME email sending capabilities
04: * @Author Vladimir Radisic
05: * @Version 2.1.5
06: */
07:
08: package org.enhydra.oyster.der;
09:
10: import org.enhydra.oyster.exception.SMIMEException;
11:
12: /**
13: * DERClassContextSpecific can be both, primitive or structured type of DER
14: * encoded object with the context-specific class tag (part of object Identifier
15: * Octet) in ASN.1 notation. Difference bettween DERClassContextSpecific and
16: * DERClassContextSpecificPr is that class DERClassContextSpecific has public
17: * method addContent. Also, DERClassContextSpecific extends it's super class
18: * DERClassContextSpecificPr.
19: */
20: public class DERClassContextSpecific extends DERClassContextSpecificPr {
21:
22: /**
23: * Constructs the structured or primitive DERClassContextSpecific object
24: * @param type0 define value of identifier octet
25: * @param structured0 used for defining structured complexity of Context Specific
26: * class (true means structured, and false means primitive)
27: * @exception SMIMEException thrown in super class constructor.
28: */
29: public DERClassContextSpecific(int type0, boolean structured0)
30: throws SMIMEException {
31: super (type0, structured0);
32: }
33:
34: /**
35: * Adds content to DER encoded Context Specific Class Type
36: * @param content0 content for adding to Context Specific Class Type
37: * @exception SMIMEException when adding content to primitive
38: * DERClassContextSpecificPr object is performed more than once, or thrown in
39: * super class method addContent.
40: */
41: public void addContent(byte[] content0) throws SMIMEException {
42: super.addContent(content0);
43: }
44: }
|