View Javadoc
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 package org.webdocwf.util.smime.der; 9 10 11 import org.webdocwf.util.smime.exception.SMIMEException; 12 13 14 /*** 15 * DERClassContextSpecific can be both, primitive or structured type of DER 16 * encoded object with the context-specific class tag (part of object Identifier 17 * Octet) in ASN.1 notation. Difference bettween DERClassContextSpecific and 18 * DERClassContextSpecificPr is that class DERClassContextSpecific has public 19 * method addContent. Also, DERClassContextSpecific extends it's super class 20 * DERClassContextSpecificPr. 21 */ 22 public class DERClassContextSpecific extends DERClassContextSpecificPr { 23 24 /*** 25 * Constructs the structured or primitive DERClassContextSpecific object 26 * @param type0 define value of identifier octet 27 * @param structured0 used for defining structured complexity of Context Specific 28 * class (true means structured, and false means primitive) 29 * @exception SMIMEException thrown in super class constructor. 30 */ 31 public DERClassContextSpecific(int type0, boolean structured0) throws SMIMEException { 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

This page was automatically generated by Maven