public class EncryptedData
extends org.bouncycastle.asn1.ASN1Object
EncryptedData ::= SEQUENCE { version CMSVersion, encryptedContentInfo EncryptedContentInfo, unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
Constructor and Description |
---|
EncryptedData(EncryptedContentInfo encInfo) |
EncryptedData(EncryptedContentInfo encInfo,
org.bouncycastle.asn1.ASN1Set unprotectedAttrs) |
Modifier and Type | Method and Description |
---|---|
EncryptedContentInfo |
getEncryptedContentInfo() |
static EncryptedData |
getInstance(java.lang.Object o)
Return an EncryptedData object from the given object.
|
org.bouncycastle.asn1.ASN1Set |
getUnprotectedAttrs() |
org.bouncycastle.asn1.ASN1Integer |
getVersion() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public EncryptedData(EncryptedContentInfo encInfo)
public EncryptedData(EncryptedContentInfo encInfo, org.bouncycastle.asn1.ASN1Set unprotectedAttrs)
public static EncryptedData getInstance(java.lang.Object o)
Accepted inputs:
EncryptedData
object
ASN1Sequence
input formats
o
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public EncryptedContentInfo getEncryptedContentInfo()
public org.bouncycastle.asn1.ASN1Set getUnprotectedAttrs()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object