<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.1" />

PkixBuilderParameters

public virtual int MaxPathLength { get; set; }

public PkixBuilderParameters(ISet<TrustAnchor> trustAnchors, ISelector<X509Certificate> targetConstraintsCert)

public PkixBuilderParameters(ISet<TrustAnchor> trustAnchors, ISelector<X509Certificate> targetConstraintsCert, ISelector<X509V2AttributeCertificate> targetConstraintsAttrCert)

public virtual void SetExcludedCerts(ISet<X509Certificate> excludedCerts)