public TimeStampResp(
     PkiStatusInfo	pkiStatusInfo,
     ContentInfo		timeStampToken)
 {
     this.pkiStatusInfo = pkiStatusInfo;
     this.timeStampToken = timeStampToken;
 }
        private TimeStampResp(
            Asn1Sequence seq)
        {
            this.pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]);

            if (seq.Count > 1)
            {
                this.timeStampToken = ContentInfo.GetInstance(seq[1]);
            }
        }
        private CertStatus(Asn1Sequence seq)
        {
            certHash = Asn1OctetString.GetInstance(seq[0]);
            certReqId = DerInteger.GetInstance(seq[1]);

            if (seq.Count > 2)
            {
                statusInfo = PkiStatusInfo.GetInstance(seq[2]);
            }
        }
        public ErrorMsgContent(
            PkiStatusInfo	pkiStatusInfo,
            DerInteger		errorCode,
            PkiFreeText		errorDetails)
        {
            if (pkiStatusInfo == null)
                throw new ArgumentNullException("pkiStatusInfo");

            this.pkiStatusInfo = pkiStatusInfo;
            this.errorCode = errorCode;
            this.errorDetails = errorDetails;
        }
        private ErrorMsgContent(Asn1Sequence seq)
        {
            pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]);

            for (int pos = 1; pos < seq.Count; ++pos)
            {
                Asn1Encodable ae = seq[pos];
                if (ae is DerInteger)
                {
                    errorCode = DerInteger.GetInstance(ae);
                }
                else
                {
                    errorDetails = PkiFreeText.GetInstance(ae);
                }
            }
        }
 public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
     : this(pkiStatusInfo, null, null)
 {
 }
 public CertStatus(byte[] certHash, BigInteger certReqId, PkiStatusInfo statusInfo)
 {
     this.certHash = new DerOctetString(certHash);
     this.certReqId = new DerInteger(certReqId);
     this.statusInfo = statusInfo;
 }