Ejemplo n.º 1
0
        public OcspIdentifier(
            ResponderID	ocspResponderID,
            DateTime	producedAt)
        {
            if (ocspResponderID == null)
                throw new ArgumentNullException();

            this.ocspResponderID = ocspResponderID;
            this.producedAt = new DerGeneralizedTime(producedAt);
        }
Ejemplo n.º 2
0
        private OcspIdentifier(
            Asn1Sequence seq)
        {
            if (seq == null)
                throw new ArgumentNullException("seq");
            if (seq.Count != 2)
                throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");

            this.ocspResponderID = ResponderID.GetInstance(seq[0].ToAsn1Object());
            this.producedAt = (DerGeneralizedTime) seq[1].ToAsn1Object();
        }