/** * @param status * @param statusString */ public PkiStatusInfo( int status, PkiFreeText statusString) { this.status = new DerInteger(status); this.statusString = statusString; }
public PkiStatusInfo( Asn1Sequence seq) { this.status = DerInteger.GetInstance(seq[0]); this.statusString = null; this.failInfo = null; if (seq.Count > 2) { this.statusString = PkiFreeText.GetInstance(seq[1]); this.failInfo = DerBitString.GetInstance(seq[2]); } else if (seq.Count > 1) { object obj = seq[1]; if (obj is DerBitString) { this.failInfo = DerBitString.GetInstance(obj); } else { this.statusString = PkiFreeText.GetInstance(obj); } } }
public PkiStatusInfo( int status, PkiFreeText statusString, PkiFailureInfo failInfo) { this.status = new DerInteger(status); this.statusString = statusString; this.failInfo = failInfo; }
private PollRepContent(Asn1Sequence seq) { certReqId = DerInteger.GetInstance(seq[0]); checkAfter = DerInteger.GetInstance(seq[1]); if (seq.Count > 2) { reason = PkiFreeText.GetInstance(seq[2]); } }
private PollRepContent(Asn1Sequence seq) { certReqId = DerInteger.GetInstance(seq[0]); checkAfter = DerInteger.GetInstance(seq[1]); if (seq.Count > 2) { reason = PkiFreeText.GetInstance(seq[2]); } }
public ErrorMsgContent( PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails) { if (pkiStatusInfo == null) throw new ArgumentNullException("pkiStatusInfo"); this.pkiStatusInfo = pkiStatusInfo; this.errorCode = errorCode; this.errorDetails = errorDetails; }
public ErrorMsgContent( PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails) { if (pkiStatusInfo == null) { throw new ArgumentNullException("pkiStatusInfo"); } this.pkiStatusInfo = pkiStatusInfo; this.errorCode = errorCode; this.errorDetails = errorDetails; }
private ErrorMsgContent(Asn1Sequence seq) { pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]); for (int pos = 1; pos < seq.Count; ++pos) { Asn1Encodable ae = seq[pos]; if (ae is DerInteger) { errorCode = DerInteger.GetInstance(ae); } else { errorDetails = PkiFreeText.GetInstance(ae); } } }
private ErrorMsgContent(Asn1Sequence seq) { pkiStatusInfo = PkiStatusInfo.GetInstance(seq[0]); for (int pos = 1; pos < seq.Count; ++pos) { Asn1Encodable ae = seq[pos]; if (ae is DerInteger) { errorCode = DerInteger.GetInstance(ae); } else { errorDetails = PkiFreeText.GetInstance(ae); } } }