Skip to content

docs: add XML documentation for X.509 certificate and CRL generators (Batch 12a-1)#684

Closed
KonradSop wants to merge 1 commit into
bcgit:masterfrom
KonradSop:feature/x509-generators-docs
Closed

docs: add XML documentation for X.509 certificate and CRL generators (Batch 12a-1)#684
KonradSop wants to merge 1 commit into
bcgit:masterfrom
KonradSop:feature/x509-generators-docs

Conversation

@KonradSop

Copy link
Copy Markdown
Contributor

Description

Adds and modernises XML documentation for the three RFC 5280 certificate/CRL generators under
crypto/src/x509:

  • X509V1CertificateGenerator — class summary citing RFC 5280; documents SetValidity and
    <exception> tags on SetSerialNumber and SetPublicKey; wraps the serial-number <remarks> to
    the 120-character line limit.
  • X509V2CrlGenerator — converts legacy block comments to XML; adds class summary; documents
    default and template constructors, issuer/dates, all AddCrlEntry overloads, AddCrl,
    AddExtension, and both Generate overloads (including alternate-signature CRLs); fixes the
    incorrect <returns> cref on the alternate-signature overload (X509Crl, not X509Certificate).
  • X509V3CertificateGenerator — expands class summary; documents missing constructors,
    SetValidity, undocumented AddExtension/AddExtensions overloads, and CopyAndAddExtension
    with its CertificateParsingException; adds <exception> on SetSerialNumber.

Key Accomplishments

  • User-facing X.509 entry points: certificate and CRL generation now have consistent IDE tooltips
    aligned with the PQC/modern-curve documentation batches.
  • Accurate exception contracts: <exception> only where the method body throws.
  • Consistent style: <see cref> references, no blank lines inside <summary>, lines ≤120.
  • No overlap with Batch 7–11: disjoint file set; first of three planned Batch 12a PRs (PKCS#12
    and CMS to follow).

Verification

  • Build Status: dotnet build crypto/src/BouncyCastle.Crypto.csproj -c Release — succeeded on
    net6.0, netstandard2.0, net461 with no new warnings.
  • Scope: Documentation-only; no behavioural or signature changes.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have kept the patch limited to only change the parts related to the patch
  • This change requires a documentation update
    See also Contributing Guidelines.

Document and modernise the public API of X509V1CertificateGenerator,
X509V2CrlGenerator and X509V3CertificateGenerator (RFC 5280). Converts
legacy block comments on the CRL generator to XML, fills gaps on all three
generators (constructors, SetValidity, extension helpers, exception
contracts) and wraps overlong serial-number remarks to stay within the
120-character line limit. No behavioural changes.
@peterdettman

Copy link
Copy Markdown
Collaborator

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants