<PackageReference Include="Microsoft.Bcl.Cryptography" Version="10.0.11" />

System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits

public sealed class Pkcs12LoaderLimits
Represents a set of constraints to apply when loading PKCS#12/PFX contents.
public static Pkcs12LoaderLimits DangerousNoLimits { get; }

Gets a shared reference to loader limits that indicate no filtering or restrictions of the contents should be applied before sending them to the underlying system loader.

public static Pkcs12LoaderLimits Defaults { get; }

Gets a shared reference to the default loader limits.

public bool IgnoreEncryptedAuthSafes { get; set; }

Gets or sets a value indicating whether to ignore encrypted authentication safes.

public bool IgnorePrivateKeys { get; set; }

Gets or sets a value indicating whether to ignore private keys.

public int? IndividualKdfIterationLimit { get; set; }

Gets or sets the iteration limit for the individual Key Derivation Function (KDF) calculations.

public bool IsReadOnly { get; }

Gets a value indicating whether the instance is read-only.

public int? MacIterationLimit { get; set; }

Gets or sets the iteration limit for the MAC calculation.

public int? MaxCertificates { get; set; }

Gets or sets the maximum number of certificates permitted.

public int? MaxKeys { get; set; }

Gets or sets the maximum number of keys permitted.

public bool PreserveCertificateAlias { get; set; }

Gets or sets a value indicating whether to preserve the certificate alias, also known as the friendly name.

public bool PreserveKeyName { get; set; }

Gets or sets a value indicating whether to preserve the key name.

public bool PreserveStorageProvider { get; set; }

Gets or sets a value indicating whether to preserve the storage provider.

public bool PreserveUnknownAttributes { get; set; }

Gets or sets a value indicating whether to preserve unknown attributes.

public int? TotalKdfIterationLimit { get; set; }

Gets or sets the total iteration limit for the Key Derivation Function (KDF) calculations.

Initializes a new instance of the Pkcs12LoaderLimits class with default values.

Initializes a new instance of the Pkcs12LoaderLimits class by copying the values from another instance.

public void MakeReadOnly()

Makes the Pkcs12LoaderLimits instance read-only.