org.gudy.bouncycastle.asn1.pkcs
Class EncryptedData

java.lang.Object
  extended by org.gudy.bouncycastle.asn1.pkcs.EncryptedData
All Implemented Interfaces:
DEREncodable

public class EncryptedData
extends Object
implements DEREncodable

The EncryptedData object.

      EncryptedData ::= SEQUENCE {
           version Version,
           encryptedContentInfo EncryptedContentInfo
      }


      EncryptedContentInfo ::= SEQUENCE {
          contentType ContentType,
          contentEncryptionAlgorithm  ContentEncryptionAlgorithmIdentifier,
          encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL
    }

    EncryptedContent ::= OCTET STRING
 


Constructor Summary
EncryptedData(ASN1Sequence seq)
           
EncryptedData(DERObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, DEREncodable content)
           
 
Method Summary
 ASN1OctetString getContent()
           
 DERObjectIdentifier getContentType()
           
 DERObject getDERObject()
           
 AlgorithmIdentifier getEncryptionAlgorithm()
           
static EncryptedData getInstance(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedData

public EncryptedData(ASN1Sequence seq)

EncryptedData

public EncryptedData(DERObjectIdentifier contentType,
                     AlgorithmIdentifier encryptionAlgorithm,
                     DEREncodable content)
Method Detail

getInstance

public static EncryptedData getInstance(Object obj)

getContentType

public DERObjectIdentifier getContentType()

getEncryptionAlgorithm

public AlgorithmIdentifier getEncryptionAlgorithm()

getContent

public ASN1OctetString getContent()

getDERObject

public DERObject getDERObject()
Specified by:
getDERObject in interface DEREncodable