상속: Asn1Encodable
예제 #1
0
		private CertResponse(Asn1Sequence seq)
		{
			certReqId = DerInteger.GetInstance(seq[0]);
			status = PkiStatusInfo.GetInstance(seq[1]);

			if (seq.Count >= 3)
			{
				if (seq.Count == 3)
				{
					Asn1Encodable o = seq[2];
					if (o is Asn1OctetString)
					{
						rspInfo = Asn1OctetString.GetInstance(o);
					}
					else
					{
						certifiedKeyPair = CertifiedKeyPair.GetInstance(o);
					}
				}
				else
				{
					certifiedKeyPair = CertifiedKeyPair.GetInstance(seq[2]);
					rspInfo = Asn1OctetString.GetInstance(seq[3]);
				}
			}
		}
예제 #2
0
        private CertResponse(Asn1Sequence seq)
        {
            certReqId = DerInteger.GetInstance(seq[0]);
            status    = PkiStatusInfo.GetInstance(seq[1]);

            if (seq.Count >= 3)
            {
                if (seq.Count == 3)
                {
                    Asn1Encodable o = seq[2];
                    if (o is Asn1OctetString)
                    {
                        rspInfo = Asn1OctetString.GetInstance(o);
                    }
                    else
                    {
                        certifiedKeyPair = CertifiedKeyPair.GetInstance(o);
                    }
                }
                else
                {
                    certifiedKeyPair = CertifiedKeyPair.GetInstance(seq[2]);
                    rspInfo          = Asn1OctetString.GetInstance(seq[3]);
                }
            }
        }
예제 #3
0
		public virtual CertifiedKeyPair[] GetKeyPairHist()
		{
			if (keyPairHist == null)
				return null;

			CertifiedKeyPair[] results = new CertifiedKeyPair[keyPairHist.Count];
			for (int i = 0; i != results.Length; ++i)
			{
				results[i] = CertifiedKeyPair.GetInstance(keyPairHist[i]);
			}
			return results;
		}
예제 #4
0
 public virtual CertifiedKeyPair[] GetKeyPairHist()
 {
     if (this.keyPairHist == null)
     {
         return(null);
     }
     CertifiedKeyPair[] array = new CertifiedKeyPair[this.keyPairHist.Count];
     for (int num = 0; num != array.Length; num++)
     {
         array[num] = CertifiedKeyPair.GetInstance(this.keyPairHist[num]);
     }
     return(array);
 }
예제 #5
0
 public virtual CertifiedKeyPair[] GetKeyPairHist()
 {
     if (keyPairHist == null)
     {
         return(null);
     }
     CertifiedKeyPair[] array = new CertifiedKeyPair[keyPairHist.Count];
     for (int i = 0; i != array.Length; i++)
     {
         array[i] = CertifiedKeyPair.GetInstance(keyPairHist[i]);
     }
     return(array);
 }
예제 #6
0
        public virtual CertifiedKeyPair[] GetKeyPairHist()
        {
            if (keyPairHist == null)
            {
                return(null);
            }

            CertifiedKeyPair[] results = new CertifiedKeyPair[keyPairHist.Count];
            for (int i = 0; i != results.Length; ++i)
            {
                results[i] = CertifiedKeyPair.GetInstance(keyPairHist[i]);
            }
            return(results);
        }
예제 #7
0
 public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
 {
     if (certReqId == null)
     {
         throw new ArgumentNullException("certReqId");
     }
     if (status == null)
     {
         throw new ArgumentNullException("status");
     }
     this.certReqId        = certReqId;
     this.status           = status;
     this.certifiedKeyPair = certifiedKeyPair;
     this.rspInfo          = rspInfo;
 }
예제 #8
0
		public CertResponse(
			DerInteger			certReqId,
			PkiStatusInfo		status,
			CertifiedKeyPair	certifiedKeyPair,
			Asn1OctetString		rspInfo)
		{
			if (certReqId == null)
				throw new ArgumentNullException("certReqId");

			if (status == null)
				throw new ArgumentNullException("status");

			this.certReqId = certReqId;
			this.status = status;
			this.certifiedKeyPair = certifiedKeyPair;
			this.rspInfo = rspInfo;
		}
예제 #9
0
 public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     if (certReqId == null)
     {
         throw new ArgumentNullException("certReqId");
     }
     if (status == null)
     {
         throw new ArgumentNullException("status");
     }
     this.certReqId        = certReqId;
     this.status           = status;
     this.certifiedKeyPair = certifiedKeyPair;
     this.rspInfo          = rspInfo;
 }
예제 #10
0
 private CertResponse(Asn1Sequence seq)
 {
     this.certReqId = DerInteger.GetInstance(seq[0]);
     this.status    = PkiStatusInfo.GetInstance(seq[1]);
     if (seq.Count >= 3)
     {
         if (seq.Count == 3)
         {
             Asn1Encodable asn1Encodable = seq[2];
             if (asn1Encodable is Asn1OctetString)
             {
                 this.rspInfo = Asn1OctetString.GetInstance(asn1Encodable);
                 return;
             }
             this.certifiedKeyPair = CertifiedKeyPair.GetInstance(asn1Encodable);
             return;
         }
         else
         {
             this.certifiedKeyPair = CertifiedKeyPair.GetInstance(seq[2]);
             this.rspInfo          = Asn1OctetString.GetInstance(seq[3]);
         }
     }
 }