public class EnvelopedData extends ASN1Encodable
Modifier and Type | Field and Description |
---|---|
private EncryptedContentInfo |
encryptedContentInfo |
private OriginatorInfo |
originatorInfo |
private ASN1Set |
recipientInfos |
private ASN1Set |
unprotectedAttrs |
private DERInteger |
version |
BER, DER
Constructor and Description |
---|
EnvelopedData(ASN1Sequence seq) |
EnvelopedData(OriginatorInfo originatorInfo,
ASN1Set recipientInfos,
EncryptedContentInfo encryptedContentInfo,
ASN1Set unprotectedAttrs) |
Modifier and Type | Method and Description |
---|---|
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() |
DERInteger |
getVersion() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
private DERInteger version
private OriginatorInfo originatorInfo
private ASN1Set recipientInfos
private EncryptedContentInfo encryptedContentInfo
private ASN1Set unprotectedAttrs
public EnvelopedData(OriginatorInfo originatorInfo, ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, ASN1Set 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)
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public DERInteger getVersion()
public OriginatorInfo getOriginatorInfo()
public ASN1Set getRecipientInfos()
public EncryptedContentInfo getEncryptedContentInfo()
public ASN1Set getUnprotectedAttrs()
public DERObject toASN1Object()
EnvelopedData ::= SEQUENCE { version CMSVersion, originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL, recipientInfos RecipientInfos, encryptedContentInfo EncryptedContentInfo, unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
toASN1Object
in class ASN1Encodable
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.