Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Pkcs12Builder Class

Definition

Namespace:
System.Security.Cryptography.Pkcs
Assembly:
System.Security.Cryptography.Pkcs.dll
Package:
System.Security.Cryptography.Pkcs v11.0.0-preview.5.26302.115
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs
Source:
Pkcs12Builder.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enables the creation of PKCS#12 PFX data values. This class cannot be inherited.

public ref class Pkcs12Builder sealed
public sealed class Pkcs12Builder
type Pkcs12Builder = class
Public NotInheritable Class Pkcs12Builder
Inheritance
Pkcs12Builder

Constructors

Name Description
Pkcs12Builder()

Initializes a new value of the Pkcs12Builder class.

Properties

Name Description
IsSealed

Gets a value that indicates whether the PFX data has been sealed.

Methods

Name Description
AddSafeContentsEncrypted(Pkcs12SafeContents, Byte[], PbeParameters)

Add contents to the PFX in an bundle encrypted with a byte-based password from a byte array.

AddSafeContentsEncrypted(Pkcs12SafeContents, ReadOnlySpan<Byte>, PbeParameters)

Add contents to the PFX in an bundle encrypted with a byte-based password from a span.

AddSafeContentsEncrypted(Pkcs12SafeContents, ReadOnlySpan<Char>, PbeParameters)

Add contents to the PFX in an bundle encrypted with a char-based password from a span.

AddSafeContentsEncrypted(Pkcs12SafeContents, String, PbeParameters)

Add contents to the PFX in an bundle encrypted with a char-based password from a string.

AddSafeContentsUnencrypted(Pkcs12SafeContents)

Add contents to the PFX without encrypting them.

Encode()

Encodes the contents of a sealed PFX and returns it as a byte array.

SealWithMac(ReadOnlySpan<Char>, HashAlgorithmName, Int32)

Seals the PFX against further changes by applying a password-based Message Authentication Code (MAC) over the contents with a password from a span.

SealWithMac(String, HashAlgorithmName, Int32)

Seals the PFX against further changes by applying a password-based Message Authentication Code (MAC) over the contents with a password from a string.

SealWithoutIntegrity()

Seals the PFX from further changes without applying tamper-protection.

TryEncode(Span<Byte>, Int32)

Attempts to encode the contents of a sealed PFX into a provided buffer.

Applies to


Feedback

Was this page helpful?