Inheritance: Asn1Encodable, IAsn1Choice
示例#1
0
 public CertReqMsg(CertRequest certReq, ProofOfPossession popo, AttributeTypeAndValue[] regInfo)
 {
     if (certReq == null)
     {
         throw new ArgumentNullException("certReq");
     }
     this.certReq = certReq;
     this.popo    = popo;
     if (regInfo != null)
     {
         this.regInfo = new DerSequence(regInfo);
     }
 }
示例#2
0
 public CertReqMsg(CertRequest certReq, ProofOfPossession popo, AttributeTypeAndValue[] regInfo)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     if (certReq == null)
     {
         throw new ArgumentNullException("certReq");
     }
     this.certReq = certReq;
     this.popo    = popo;
     if (regInfo != null)
     {
         this.regInfo = new DerSequence(regInfo);
     }
 }
示例#3
0
 private CertReqMsg(Asn1Sequence seq)
 {
     certReq = CertRequest.GetInstance(seq[0]);
     for (int i = 1; i < seq.Count; i++)
     {
         object obj = seq[i];
         if (obj is Asn1TaggedObject || obj is ProofOfPossession)
         {
             popo = ProofOfPossession.GetInstance(obj);
         }
         else
         {
             regInfo = Asn1Sequence.GetInstance(obj);
         }
     }
 }
示例#4
0
        /**
         * Creates a new CertReqMsg.
         * @param certReq CertRequest
         * @param popo may be null
         * @param regInfo may be null
         */
        public CertReqMsg(
            CertRequest				certReq,
            ProofOfPossession		popo,
            AttributeTypeAndValue[]	regInfo)
        {
            if (certReq == null)
                throw new ArgumentNullException("certReq");

            this.certReq = certReq;
            this.popo = popo;

            if (regInfo != null)
            {
                this.regInfo = new DerSequence(regInfo);
            }
        }
示例#5
0
        private CertReqMsg(Asn1Sequence seq)
        {
            certReq = CertRequest.GetInstance(seq[0]);

            for (int pos = 1; pos < seq.Count; ++pos)
            {
                object o = seq[pos];

                if (o is Asn1TaggedObject || o is ProofOfPossession)
                {
                    popo = ProofOfPossession.GetInstance(o);
                }
                else
                {
                    regInfo = Asn1Sequence.GetInstance(o);
                }
            }
        }
示例#6
0
        private CertReqMsg(Asn1Sequence seq)
        {
            certReq = CertRequest.GetInstance(seq[0]);

            for (int pos = 1; pos < seq.Count; ++pos)
            {
                object o = seq[pos];

                if (o is Asn1TaggedObject || o is ProofOfPossession)
                {
                    popo = ProofOfPossession.GetInstance(o);
                }
                else
                {
                    regInfo = Asn1Sequence.GetInstance(o);
                }
            }
        }