Bouncy Castle Cryptography 1.48

org.bouncycastle.asn1.cms
Class EncryptedContentInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.cms.EncryptedContentInfo
All Implemented Interfaces:
ASN1Encodable

public class EncryptedContentInfo
extends ASN1Object


Constructor Summary
EncryptedContentInfo(ASN1ObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)
           
 
Method Summary
 AlgorithmIdentifier getContentEncryptionAlgorithm()
           
 ASN1ObjectIdentifier getContentType()
           
 ASN1OctetString getEncryptedContent()
           
static EncryptedContentInfo getInstance(java.lang.Object obj)
          return an EncryptedContentInfo object from the given object.
 ASN1Primitive toASN1Primitive()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedContentInfo

public EncryptedContentInfo(ASN1ObjectIdentifier contentType,
                            AlgorithmIdentifier contentEncryptionAlgorithm,
                            ASN1OctetString encryptedContent)
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 ASN1ObjectIdentifier getContentType()

getContentEncryptionAlgorithm

public AlgorithmIdentifier getContentEncryptionAlgorithm()

getEncryptedContent

public ASN1OctetString getEncryptedContent()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
 EncryptedContentInfo ::= SEQUENCE {
     contentType ContentType,
     contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
     encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL 
 }
 

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

Bouncy Castle Cryptography 1.48