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

public Class EncryptedData

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1Set, .ASN1TaggedObject, .BERSequence, .BERTaggedObject

RFC 5652 EncryptedData object.

EncryptedData ::= SEQUENCE {
    version CMSVersion,
    encryptedContentInfo EncryptedContentInfo,
    unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }

Field Summary

Modifier and TypeField and Description
private EncryptedContentInfo
private ASN1Set
private ASN1Integer

Constructor Summary

AccessConstructor and Description
public
public
EncryptedData(EncryptedContentInfo encInfo, ASN1Set unprotectedAttrs)

private

Method Summary

Modifier and TypeMethod and Description
public EncryptedContentInfo
public static EncryptedData
getInstance(Object
the object we want converted.
o
)

Return an EncryptedData object from the given object.

public ASN1Set
public ASN1Integer
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
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:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encryptedContentInfoback to summary
private EncryptedContentInfo encryptedContentInfo
unprotectedAttrsback to summary
private ASN1Set unprotectedAttrs
versionback to summary
private ASN1Integer version

Constructor Detail

EncryptedDataback to summary
public EncryptedData(EncryptedContentInfo encInfo)
EncryptedDataback to summary
public EncryptedData(EncryptedContentInfo encInfo, ASN1Set unprotectedAttrs)
EncryptedDataback to summary
private EncryptedData(ASN1Sequence seq)

Method Detail

getEncryptedContentInfoback to summary
public EncryptedContentInfo getEncryptedContentInfo()
getInstanceback to summary
public static EncryptedData getInstance(Object o)

Return an EncryptedData object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getUnprotectedAttrsback to summary
public ASN1Set getUnprotectedAttrs()
getVersionback to summary
public ASN1Integer getVersion()
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 basic ASN.1 object representation.