public virtual RevRepContentBuilder Add(PkiStatusInfo status, CertId certId) { if (this.status.Count != this.revCerts.Count) throw new InvalidOperationException("status and revCerts sequence must be in common order"); this.status.Add(status); this.revCerts.Add(certId); return this; }
public virtual CertId[] GetRevCerts() { if (revCerts == null) return null; CertId[] results = new CertId[revCerts.Count]; for (int i = 0; i != results.Length; ++i) { results[i] = CertId.GetInstance(revCerts[i]); } return results; }
private RevAnnContent(Asn1Sequence seq) { status = PkiStatusEncodable.GetInstance(seq[0]); certId = CertId.GetInstance(seq[1]); willBeRevokedAt = DerGeneralizedTime.GetInstance(seq[2]); badSinceDate = DerGeneralizedTime.GetInstance(seq[3]); if (seq.Count > 4) { crlDetails = X509Extensions.GetInstance(seq[4]); } }
private OobCertHash(Asn1Sequence seq) { int index = seq.Count - 1; hashVal = DerBitString.GetInstance(seq[index--]); for (int i = index; i >= 0; i--) { Asn1TaggedObject tObj = (Asn1TaggedObject)seq[i]; if (tObj.TagNo == 0) { hashAlg = AlgorithmIdentifier.GetInstance(tObj, true); } else { certId = CertId.GetInstance(tObj, true); } } }