Org.BouncyCastle.Pkcs.Pkcs12StoreBuilder
Fluent builder for Pkcs12Store instances, configuring PBE algorithms and
encoding options used when saving PKCS#12 files (RFC 7292).
public Pkcs12StoreBuilder()
Creates a builder with library-default PBE algorithms and options.
Builds a new Pkcs12Store using the configured algorithms and options.
Sets the PBE algorithm used to encrypt certificate bags when saving (PKCS#12 scheme 1).
public Pkcs12StoreBuilder SetCertAlgorithm(DerObjectIdentifier certAlgorithm, DerObjectIdentifier certPrfAlgorithm)
Sets the PBES2 algorithm and PRF used to encrypt certificate bags when saving (PKCS#12 scheme 2).
Whether to include Oracle's TrustedKeyUsage attribute in CertBag attributes. Defaults to true.
Sets the PBE algorithm used to encrypt private-key bags when saving (PKCS#12 scheme 1).
public Pkcs12StoreBuilder SetKeyAlgorithm(DerObjectIdentifier keyAlgorithm, DerObjectIdentifier keyPrfAlgorithm)
Sets the PBES2 algorithm and PRF used to encrypt private-key bags when saving (PKCS#12 scheme 2).
Controls whether SetFriendlyName may replace an existing friendly name.
Defaults to true.
When true, certificate and key bags are written in reverse insertion order when saving.
When true, saved PKCS#12 structures use DER encoding instead of BER for inner content.