Bouncy Castle Cryptography 1.20

org.bouncycastle.asn1.cms
Class EncryptedContentInfo

java.lang.Object
  |
  +--org.bouncycastle.asn1.cms.EncryptedContentInfo
All Implemented Interfaces:
DEREncodable

public class EncryptedContentInfo
extends java.lang.Object
implements DEREncodable


Constructor Summary
EncryptedContentInfo(ASN1Sequence seq)
           
EncryptedContentInfo(DERObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)
           
 
Method Summary
 AlgorithmIdentifier getContentEncryptionAlgorithm()
           
 DERObjectIdentifier getContentType()
           
 DERObject getDERObject()
           EncryptedContentInfo ::= SEQUENCE { contentType ContentType, contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
 ASN1OctetString getEncryptedContent()
           
static EncryptedContentInfo getInstance(java.lang.Object obj)
          return an EncryptedContentInfo object from the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedContentInfo

public EncryptedContentInfo(DERObjectIdentifier contentType,
                            AlgorithmIdentifier contentEncryptionAlgorithm,
                            ASN1OctetString encryptedContent)

EncryptedContentInfo

public EncryptedContentInfo(ASN1Sequence seq)
Method Detail

getInstance

public static EncryptedContentInfo getInstance(java.lang.Object obj)
return an EncryptedContentInfo object from the given object.

Parameters:
obj - the object we want converted.
Throws:
java.lang.IllegalArgumentException - if the object cannot be converted.

getContentType

public DERObjectIdentifier getContentType()

getContentEncryptionAlgorithm

public AlgorithmIdentifier getContentEncryptionAlgorithm()

getEncryptedContent

public ASN1OctetString getEncryptedContent()

getDERObject

public DERObject getDERObject()
 EncryptedContentInfo ::= SEQUENCE {
 	contentType ContentType,
 	contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
 	encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL 
 }
 

Specified by:
getDERObject in interface DEREncodable

Bouncy Castle Cryptography 1.20