Redigera

Dela via


Pkcs12Builder Class

Definition

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

Pkcs12Builder()

Initializes a new value of the Pkcs12Builder class.

Properties

IsSealed

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

Methods

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.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryEncode(Span<Byte>, Int32)

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

Applies to