public class EncryptedData extends ASN1Object
EncryptedData ::= SEQUENCE { version CMSVersion, encryptedContentInfo EncryptedContentInfo, unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
Constructor and Description |
---|
EncryptedData(EncryptedContentInfo encInfo) |
EncryptedData(EncryptedContentInfo encInfo,
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.
|
ASN1Set |
getUnprotectedAttrs() |
ASN1Integer |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public EncryptedData(EncryptedContentInfo encInfo)
public EncryptedData(EncryptedContentInfo encInfo, 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 ASN1Integer getVersion()
public EncryptedContentInfo getEncryptedContentInfo()
public ASN1Set getUnprotectedAttrs()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object