Exemple #1
0
        private OcspRequest(
            Asn1Sequence seq)
        {
            tbsRequest = TbsRequest.GetInstance(seq[0]);

            if (seq.Count == 2)
            {
                optionalSignature = Signature.GetInstance(
                    (Asn1TaggedObject)seq[1], true);
            }
        }
Exemple #2
0
        public OcspRequest(
            TbsRequest tbsRequest,
            Signature optionalSignature)
        {
            if (tbsRequest == null)
            {
                throw new ArgumentNullException("tbsRequest");
            }

            this.tbsRequest        = tbsRequest;
            this.optionalSignature = optionalSignature;
        }