public class EncryptedData extends ASN1Object
EncryptedData ::= SEQUENCE { version CMSVersion, encryptedContentInfo EncryptedContentInfo, unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
Modifier and Type | Field and Description |
---|---|
private EncryptedContentInfo |
encryptedContentInfo |
private ASN1Set |
unprotectedAttrs |
private ASN1Integer |
version |
Modifier | Constructor and Description |
---|---|
private |
EncryptedData(ASN1Sequence seq) |
|
EncryptedData(EncryptedContentInfo encInfo) |
|
EncryptedData(EncryptedContentInfo encInfo,
ASN1Set unprotectedAttrs) |
Modifier and Type | Method and Description |
---|---|
EncryptedContentInfo |
getEncryptedContentInfo() |
static EncryptedData |
getInstance(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
private ASN1Integer version
private EncryptedContentInfo encryptedContentInfo
private ASN1Set unprotectedAttrs
public EncryptedData(EncryptedContentInfo encInfo)
public EncryptedData(EncryptedContentInfo encInfo, ASN1Set unprotectedAttrs)
private EncryptedData(ASN1Sequence seq)
public static EncryptedData getInstance(Object o)
Accepted inputs:
EncryptedData
object
ASN1Sequence
input formats
o
- the object we want converted.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