private RevDetails(Asn1Sequence seq) { certDetails = CertTemplate.GetInstance(seq[0]); crlEntryDetails = seq.Count <= 1 ? null : X509Extensions.GetInstance(seq[1]); }
private RevDetails(Asn1Sequence seq) { this.certDetails = CertTemplate.GetInstance(seq[0]); if (seq.Count > 1) { this.crlEntryDetails = X509Extensions.GetInstance(seq[1]); } }
private CertRequest(Asn1Sequence seq) { certReqId = DerInteger.GetInstance(seq[0]); certTemplate = CertTemplate.GetInstance(seq[1]); if (seq.Count > 2) { controls = Controls.GetInstance(seq[2]); } }
public virtual CertTemplate Build() { Asn1EncodableVector v = new Asn1EncodableVector(); AddOptional(v, 0, isExplicit: false, version); AddOptional(v, 1, isExplicit: false, serialNumber); AddOptional(v, 2, isExplicit: false, signingAlg); AddOptional(v, 3, isExplicit: true, issuer); AddOptional(v, 4, isExplicit: false, validity); AddOptional(v, 5, isExplicit: true, subject); AddOptional(v, 6, isExplicit: false, publicKey); AddOptional(v, 7, isExplicit: false, issuerUID); AddOptional(v, 8, isExplicit: false, subjectUID); AddOptional(v, 9, isExplicit: false, extensions); return(CertTemplate.GetInstance(new DerSequence(v))); }