예제 #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
 public CrlOcspRef(
     CrlListID crlids,
     OcspListID ocspids,
     OtherRevRefs otherRev)
 {
     this.crlids   = crlids;
     this.ocspids  = ocspids;
     this.otherRev = otherRev;
 }