org.webdocwf.util.smime.cms
Class EnvelopedData
java.lang.Object
|
+--org.webdocwf.util.smime.der.DERObject
|
+--org.webdocwf.util.smime.der.DERSequencePr
|
+--org.webdocwf.util.smime.cms.EnvelopedData
- public class EnvelopedData
- extends DERSequencePr
EnvelopedData is DER encoded container for information represented in
ASN.1 notation according to RFC2630, used for construction CMS object
of encrypted message.
EnvelopedData ::= SEQUENCE {
- version CMSVersion,
- originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
- recipientInfos RecipientInfos,
- encryptedContentInfo EncryptedContentInfo,
- unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
Constructor Summary |
EnvelopedData()
Constructs empty Enveloped Data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvelopedData
public EnvelopedData()
throws SMIMEException
- Constructs empty Enveloped Data.
- Throws:
SMIMEException
- thrown from super class constructor.
addCMSVersion
public void addCMSVersion(byte[] ver0)
throws SMIMEException
- Adds CMS Version.
- Parameters:
ver0
- CMS version represented as byte array- Throws:
SMIMEException
- if order of adding components is wrong. Also, it
can be thrown from super class addContent method.
addRecipientInfos
public void addRecipientInfos(byte[] info0)
throws SMIMEException
- Adds Recipient Infos.
- Parameters:
info0
- Recipient Infos represented as byte array- Throws:
SMIMEException
- if order of adding components is wrong. Also, it
can be thrown from super class addContent method.
addEncryptContentInfo
public void addEncryptContentInfo(byte[] info0)
throws SMIMEException
- Adds Encrypt Content Info.
- Parameters:
info0
- Encrypt Content Info 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.