org.webdocwf.util.smime.cms
Class EncryptedContentInfo
java.lang.Object
|
+--org.webdocwf.util.smime.der.DERObject
|
+--org.webdocwf.util.smime.der.DERSequencePr
|
+--org.webdocwf.util.smime.cms.EncryptedContentInfo
- public class EncryptedContentInfo
- extends DERSequencePr
EncryptedContentInfo class is DER encoded Encrypted Content Info represented
in ASN.1 notation according to RFC2630. This class is used for construction
of CMS object for encrypted messages. Between other information, encrypted content
is stored in the object of this class.
EncryptedContentInfo ::= SEQUENCE {
- contentType ContentType,
- contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
- encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
ContentType ::= OBJECT IDENTIFIER
ContentEncryptionAlgorithmIdentifier ::= SEQUENCE {
- algorithm AlgorithmIdentifier,
- parameter RC2CBCParameter }
AlgorithmIdentifier ::= OBJECT IDENTIFIER
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptedContentInfo
public EncryptedContentInfo()
throws SMIMEException
- Constructs empty Encrypted Content Info. All methods: addContentType,
addEncryptAlgorithmID and addEncryptContent must be performed after
construction for obtaining valid CMS object.
- Throws:
SMIMEException
- thrown from super class constructor.
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.
addEncryptAlgorithmID
public void addEncryptAlgorithmID(byte[] alg0)
throws SMIMEException
- Adds Encrypted Algorithm Identifier
- Parameters:
alg0
- Encrypted Algorithm Identifier represented as byte array- Throws:
SMIMEException
- if order of adding components is wrong. Also, it
can be thrown from super class addContent method.
addEncryptContent
public void addEncryptContent(byte[] cont0)
throws SMIMEException
- Adds Encrypted Content
- Parameters:
cont0
- encrypted content 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.