org.webdocwf.util.smime.cms
Class EncapsulatedContentInfo

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERSequencePr
              |
              +--org.webdocwf.util.smime.cms.EncapsulatedContentInfo

public class EncapsulatedContentInfo
extends DERSequencePr

EncapsulatedContentInfo class is DER encoded content info represented in ASN.1 notation according to RFC2630. This class is used in CMS objects for signed messages. It contains message content in case of implicit signing.

EncapsulatedContentInfo ::= SEQUENCE {
eContentType ContentType,
eContent [0] EXPLICIT OCTET STRING OPTIONAL }

ContentType ::= OBJECT IDENTIFIER


Constructor Summary
EncapsulatedContentInfo()
          Constructs empty EncapsulatedContentInfo object.
 
Method Summary
 void addContentType(byte[] contType0)
          Adds Content Type
 void addEncapsulatedContent(byte[] cont0)
          Adds Encapsulated Content
 
Methods inherited from class org.webdocwf.util.smime.der.DERSequencePr
addContent
 
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

EncapsulatedContentInfo

public EncapsulatedContentInfo()
                        throws SMIMEException
Constructs empty EncapsulatedContentInfo object.
Throws:
SMIMEException - thrown from super class constructor.
Method Detail

addContentType

public void addContentType(byte[] contType0)
                    throws SMIMEException
Adds Content Type
Parameters:
contType0 - content type represented as byte array
Throws:
SMIMEException - if order of adding components is wrong. Also, it can be thrown from super class addContent method.

addEncapsulatedContent

public void addEncapsulatedContent(byte[] cont0)
                            throws SMIMEException
Adds Encapsulated Content
Parameters:
cont0 - content represented as byte array
Throws:
SMIMEException - if order of adding components is wrong. Also, it can be thrown from super class addContent method.


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