Top Description Fields Constructors Methods
org.bouncycastle.asn1.pkcs

public Class EncryptedData

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERSequence, .BERTaggedObject, org.bouncycastle.asn1.x509.AlgorithmIdentifier

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

Modifier and TypeField and Description
pack-priv ASN1Sequence

Constructor Summary

AccessConstructor and Description
private
public
EncryptedData(ASN1ObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, ASN1Encodable content)

Method Summary

Modifier and TypeMethod and Description
public ASN1OctetString
public ASN1ObjectIdentifier
public AlgorithmIdentifier
public static EncryptedData
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

databack to summary
pack-priv ASN1Sequence data

Constructor Detail

EncryptedDataback to summary
private EncryptedData(ASN1Sequence seq)
EncryptedDataback to summary
public EncryptedData(ASN1ObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, ASN1Encodable content)

Method Detail

getContentback to summary
public ASN1OctetString getContent()
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
getEncryptionAlgorithmback to summary
public AlgorithmIdentifier getEncryptionAlgorithm()
getInstanceback to summary
public static EncryptedData getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.