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

            this.crlHash       = crlHash;
            this.crlIdentifier = crlIdentifier;
        }
示例#2
0
        public OtherCertID(
            OtherHash otherCertHash,
            IssuerSerial issuerSerial)
        {
            if (otherCertHash == null)
            {
                throw new ArgumentNullException("otherCertHash");
            }

            this.otherCertHash = otherCertHash;
            this.issuerSerial  = issuerSerial;
        }
示例#3
0
        public OcspResponsesID(
            OcspIdentifier ocspIdentifier,
            OtherHash ocspRepHash)
        {
            if (ocspIdentifier == null)
            {
                throw new ArgumentNullException("ocspIdentifier");
            }

            this.ocspIdentifier = ocspIdentifier;
            this.ocspRepHash    = ocspRepHash;
        }
示例#4
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());
            }
        }
示例#5
0
        private OtherCertID(
            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.otherCertHash = OtherHash.GetInstance(seq[0].ToAsn1Object());

            if (seq.Count > 1)
            {
                this.issuerSerial = IssuerSerial.GetInstance(seq[1].ToAsn1Object());
            }
        }
示例#6
0
        private OcspResponsesID(
            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.ocspIdentifier = OcspIdentifier.GetInstance(seq[0].ToAsn1Object());

            if (seq.Count > 1)
            {
                this.ocspRepHash = OtherHash.GetInstance(seq[1].ToAsn1Object());
            }
        }
示例#7
0
 public CrlValidatedID(
     OtherHash crlHash)
     : this(crlHash, null)
 {
 }
示例#8
0
 public OtherCertID(
     OtherHash otherCertHash)
     : this(otherCertHash, null)
 {
 }