org.bouncycastle.asn1.pkcs
Class EncryptedData

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

public class EncryptedData
extends ASN1Encodable

The EncryptedData object.

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


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

    EncryptedContent ::= OCTET STRING
 


Field Summary
(package private)  DERObjectIdentifier bagId
           
(package private)  DERObject bagValue
           
(package private)  ASN1Sequence data
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
EncryptedData(ASN1Sequence seq)
           
EncryptedData(DERObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, DEREncodable content)
           
 
Method Summary
 ASN1OctetString getContent()
           
 DERObjectIdentifier getContentType()
           
 AlgorithmIdentifier getEncryptionAlgorithm()
           
static EncryptedData getInstance(java.lang.Object obj)
           
 DERObject toASN1Object()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

ASN1Sequence data

bagId

DERObjectIdentifier bagId

bagValue

DERObject bagValue
Constructor Detail

EncryptedData

public EncryptedData(ASN1Sequence seq)

EncryptedData

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

getInstance

public static EncryptedData getInstance(java.lang.Object obj)

getContentType

public DERObjectIdentifier getContentType()

getEncryptionAlgorithm

public AlgorithmIdentifier getEncryptionAlgorithm()

getContent

public ASN1OctetString getContent()

toASN1Object

public DERObject toASN1Object()
Specified by:
toASN1Object in class ASN1Encodable