org.webdocwf.util.smime.der
Class DERClassContextSpecific

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERClassContextSpecificPr
              |
              +--org.webdocwf.util.smime.der.DERClassContextSpecific

public class DERClassContextSpecific
extends DERClassContextSpecificPr

DERClassContextSpecific can be both, primitive or structured type of DER encoded object with the context-specific class tag (part of object Identifier Octet) in ASN.1 notation. Difference bettween DERClassContextSpecific and DERClassContextSpecificPr is that class DERClassContextSpecific has public method addContent. Also, DERClassContextSpecific extends it's super class DERClassContextSpecificPr.


Constructor Summary
DERClassContextSpecific(int type0, boolean structured0)
          Constructs the structured or primitive DERClassContextSpecific object
 
Method Summary
 void addContent(byte[] content0)
          Adds content to DER encoded Context Specific Class Type
 
Methods inherited from class org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, getDEREncoded, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DERClassContextSpecific

public DERClassContextSpecific(int type0,
                               boolean structured0)
                        throws SMIMEException
Constructs the structured or primitive DERClassContextSpecific object
Parameters:
type0 - define value of identifier octet
structured0 - used for defining structured complexity of Context Specific class (true means structured, and false means primitive)
Throws:
SMIMEException - thrown in super class constructor.
Method Detail

addContent

public void addContent(byte[] content0)
                throws SMIMEException
Adds content to DER encoded Context Specific Class Type
Overrides:
addContent in class DERClassContextSpecificPr
Parameters:
content0 - content for adding to Context Specific Class Type
Throws:
SMIMEException - when adding content to primitive DERClassContextSpecificPr object is performed more than once, or thrown in super class method addContent.


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.