Produce an object suitable for an ASN1OutputStream.
SingleResponse ::= SEQUENCE {
certID CertID,
certStatus CertStatus,
thisUpdate GeneralizedTime,
nextUpdate [0] EXPLICIT GeneralizedTime OPTIONAL,
singleExtensions [1] EXPLICIT Extensions OPTIONAL }
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(certID);
v.add(certStatus);
v.add(thisUpdate);
if (nextUpdate != null)
{
v.add(new DERTaggedObject(true, 0, nextUpdate));
}
if (singleExtensions != null)
{
v.add(new DERTaggedObject(true, 1, singleExtensions));
}
return new DERSequence(v);