if (o == null || o instanceof TimeStampResp)
{
return (TimeStampResp) o;
}
else if (o instanceof ASN1Sequence)
{
return new TimeStampResp((ASN1Sequence) o);
}
throw new IllegalArgumentException(
"unknown object in 'TimeStampResp' factory : "
+ o.getClass().getName() + ".");
TimeStampResp ::= SEQUENCE {
status PKIStatusInfo,
timeStampToken TimeStampToken OPTIONAL }
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(pkiStatusInfo);
if (timeStampToken != null)
{
v.add(timeStampToken);
}
return new DERSequence(v);