Methods Summary |
---|
public EncryptedContentInfo | getEncryptedContentInfo()
return encryptedContentInfo;
|
public static org.bouncycastle.asn1.cms.EnvelopedData | getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)return an EnvelopedData object from a tagged object.
return getInstance(ASN1Sequence.getInstance(obj, explicit));
|
public static org.bouncycastle.asn1.cms.EnvelopedData | getInstance(java.lang.Object obj)return an EnvelopedData object from the given object.
if (obj == null || obj instanceof EnvelopedData)
{
return (EnvelopedData)obj;
}
if (obj instanceof ASN1Sequence)
{
return new EnvelopedData((ASN1Sequence)obj);
}
throw new IllegalArgumentException("Invalid EnvelopedData: " + obj.getClass().getName());
|
public OriginatorInfo | getOriginatorInfo()
return originatorInfo;
|
public org.bouncycastle.asn1.ASN1Set | getRecipientInfos()
return recipientInfos;
|
public org.bouncycastle.asn1.ASN1Set | getUnprotectedAttrs()
return unprotectedAttrs;
|
public org.bouncycastle.asn1.DERInteger | getVersion()
return version;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
EnvelopedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
encryptedContentInfo EncryptedContentInfo,
unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL
}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(version);
if (originatorInfo != null)
{
v.add(new DERTaggedObject(false, 0, originatorInfo));
}
v.add(recipientInfos);
v.add(encryptedContentInfo);
if (unprotectedAttrs != null)
{
v.add(new DERTaggedObject(false, 1, unprotectedAttrs));
}
return new BERSequence(v);
|