コード例 #1
0
        public CrlValidatedID(
            OtherHash crlHash,
            CrlIdentifier crlIdentifier)
        {
            if (crlHash == null)
            {
                throw new ArgumentNullException("crlHash");
            }

            this.crlHash       = crlHash;
            this.crlIdentifier = crlIdentifier;
        }
コード例 #2
0
        private CrlValidatedID(
            Asn1Sequence seq)
        {
            if (seq == null)
            {
                throw new ArgumentNullException("seq");
            }
            if (seq.Count < 1 || seq.Count > 2)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");
            }

            this.crlHash = OtherHash.GetInstance(seq[0].ToAsn1Object());

            if (seq.Count > 1)
            {
                this.crlIdentifier = CrlIdentifier.GetInstance(seq[1].ToAsn1Object());
            }
        }