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]); } } }
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; }
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); }
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); }
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); }
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; }
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; }
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; }
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]); } } }