Produce an object suitable for an ASN1OutputStream.
Signature ::= SEQUENCE {
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(signatureAlgorithm);
v.add(signature);
if (certs != null)
{
v.add(new DERTaggedObject(true, 0, certs));
}
return new DERSequence(v);