public class EnvelopedData extends ASN1Object
EnvelopedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
encryptedContentInfo EncryptedContentInfo,
unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL
}
| Constructor and Description |
|---|
EnvelopedData(ASN1Sequence seq)
Deprecated.
use getInstance()
|
EnvelopedData(OriginatorInfo originatorInfo,
ASN1Set recipientInfos,
EncryptedContentInfo encryptedContentInfo,
ASN1Set unprotectedAttrs) |
EnvelopedData(OriginatorInfo originatorInfo,
ASN1Set recipientInfos,
EncryptedContentInfo encryptedContentInfo,
Attributes unprotectedAttrs) |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateVersion(OriginatorInfo originatorInfo,
ASN1Set recipientInfos,
ASN1Set unprotectedAttrs) |
EncryptedContentInfo |
getEncryptedContentInfo() |
static EnvelopedData |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return an EnvelopedData object from a tagged object.
|
static EnvelopedData |
getInstance(java.lang.Object obj)
Return an EnvelopedData object from the given object.
|
OriginatorInfo |
getOriginatorInfo() |
ASN1Set |
getRecipientInfos() |
ASN1Set |
getUnprotectedAttrs() |
ASN1Integer |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set unprotectedAttrs)
public EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs)
public EnvelopedData(ASN1Sequence seq)
public static EnvelopedData getInstance(ASN1TaggedObject obj, boolean explicit)
obj - the tagged object holding the object we want.explicit - true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException - if the object held by the
tagged object cannot be converted.public static EnvelopedData getInstance(java.lang.Object obj)
Accepted inputs:
EnvelopedData object
ASN1Sequence input formats with EnvelopedData structure inside
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public ASN1Integer getVersion()
public OriginatorInfo getOriginatorInfo()
public ASN1Set getRecipientInfos()
public EncryptedContentInfo getEncryptedContentInfo()
public ASN1Set getUnprotectedAttrs()
public ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Objectpublic static int calculateVersion(OriginatorInfo originatorInfo, ASN1Set recipientInfos, ASN1Set unprotectedAttrs)