コード例 #1
0
ファイル: CrlOcspRef.cs プロジェクト: woutersmit/NBitcoin
		private CrlOcspRef(
			Asn1Sequence seq)
		{
			if (seq == null)
				throw new ArgumentNullException("seq");

			foreach (Asn1TaggedObject taggedObj in seq)
			{
				Asn1Object asn1Obj = taggedObj.GetObject();

				switch (taggedObj.TagNo)
				{
					case 0:
						this.crlids = CrlListID.GetInstance(asn1Obj);
						break;
					case 1:
						this.ocspids = OcspListID.GetInstance(asn1Obj);
						break;
					case 2:
						this.otherRev = OtherRevRefs.GetInstance(asn1Obj);
						break;
					default:
						throw new ArgumentException("Illegal tag in CrlOcspRef", "seq");
				}
			}
		}
コード例 #2
0
        private CrlOcspRef(
            Asn1Sequence seq)
        {
            if (seq == null)
            {
                throw new ArgumentNullException("seq");
            }

            foreach (Asn1TaggedObject taggedObj in seq)
            {
                Asn1Object asn1Obj = taggedObj.GetObject();

                switch (taggedObj.TagNo)
                {
                case 0:
                    this.crlids = CrlListID.GetInstance(asn1Obj);
                    break;

                case 1:
                    this.ocspids = OcspListID.GetInstance(asn1Obj);
                    break;

                case 2:
                    this.otherRev = OtherRevRefs.GetInstance(asn1Obj);
                    break;

                default:
                    throw new ArgumentException("Illegal tag in CrlOcspRef", "seq");
                }
            }
        }
コード例 #3
0
ファイル: CrlOcspRef.cs プロジェクト: woutersmit/NBitcoin
		public CrlOcspRef(
			CrlListID		crlids,
			OcspListID		ocspids,
			OtherRevRefs	otherRev)
		{
			this.crlids = crlids;
			this.ocspids = ocspids;
			this.otherRev = otherRev;
		}
コード例 #4
0
 public CrlOcspRef(
     CrlListID crlids,
     OcspListID ocspids,
     OtherRevRefs otherRev)
 {
     this.crlids   = crlids;
     this.ocspids  = ocspids;
     this.otherRev = otherRev;
 }