Пример #1
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");
				}
			}
		}
Пример #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
		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;
 }