public X509Crl( CertificateList c) { this.c = c; try { this.sigAlgName = X509SignatureUtilities.GetSignatureName(c.SignatureAlgorithm); if (c.SignatureAlgorithm.Parameters != null) { this.sigAlgParams = ((Asn1Encodable)c.SignatureAlgorithm.Parameters).GetDerEncoded(); } else { this.sigAlgParams = null; } this.isIndirect = IsIndirectCrl; } catch (Exception e) { throw new CrlException("CRL contents invalid: " + e); } }
public virtual CertificateList[] ToCertificateListArray() { CertificateList[] result = new CertificateList[content.Count]; for (int i = 0; i != result.Length; ++ i) { result[i] = CertificateList.GetInstance(content[i]); } return result; }
public virtual CertificateList[] GetCrls() { if (crls == null) return null; CertificateList[] results = new CertificateList[crls.Count]; for (int i = 0; i != results.Length; ++i) { results[i] = CertificateList.GetInstance(crls[i]); } return results; }
public RevocationValues( CertificateList[] crlVals, BasicOcspResponse[] ocspVals, OtherRevVals otherRevVals) { if (otherRevVals == null) throw new ArgumentNullException("otherRevVals"); if (crlVals != null) { this.crlVals = new DerSequence(crlVals); } if (ocspVals != null) { this.ocspVals = new DerSequence(ocspVals); } this.otherRevVals = otherRevVals; }
protected virtual X509Crl CreateX509Crl( CertificateList c) { return new X509Crl(c); }
public CertificateList[] GetCrlVals() { CertificateList[] result = new CertificateList[crlVals.Count]; for (int i = 0; i < crlVals.Count; ++i) { result[i] = CertificateList.GetInstance(crlVals[i].ToAsn1Object()); } return result; }
public virtual RevRepContentBuilder AddCrl(CertificateList crl) { this.crls.Add(crl); return this; }