Produce an object suitable for an ASN1OutputStream.
EncryptedContentInfo ::= SEQUENCE {
contentType ContentType,
contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL
}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(contentType);
v.add(contentEncryptionAlgorithm);
if (encryptedContent != null)
{
v.add(new BERTaggedObject(false, 0, encryptedContent));
}
return new BERSequence(v);