Επεξεργασία

Κοινή χρήση μέσω


Pkcs12SafeContents Class

Definition

Represents a PKCS#12 SafeContents value. This class cannot be inherited.

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

Constructors

Pkcs12SafeContents()

Initializes a new instance of the Pkcs12SafeContents class.

Properties

ConfidentialityMode

Gets a value that indicates the type of encryption applied to the contents.

IsReadOnly

Gets a value that indicates whether this instance in a read-only state.

Methods

AddCertificate(X509Certificate2)

Adds a certificate to the SafeContents via a new Pkcs12CertBag and returns the newly created bag instance.

AddKeyUnencrypted(AsymmetricAlgorithm)

Adds an asymmetric private key to the SafeContents via a new Pkcs12KeyBag and returns the newly created bag instance.

AddNestedContents(Pkcs12SafeContents)

Adds a nested SafeContents to the SafeContents via a new Pkcs12SafeContentsBag and returns the newly created bag instance.

AddSafeBag(Pkcs12SafeBag)

Adds a SafeBag to the SafeContents.

AddSecret(Oid, ReadOnlyMemory<Byte>)

Adds an ASN.1 BER-encoded value with a specified type identifier to the SafeContents via a new Pkcs12SecretBag and returns the newly created bag instance.

AddShroudedKey(AsymmetricAlgorithm, Byte[], PbeParameters)

Adds an encrypted asymmetric private key to the SafeContents via a new Pkcs12ShroudedKeyBag from a byte-based password in an array and returns the newly created bag instance.

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Byte>, PbeParameters)

Adds an encrypted asymmetric private key to the SafeContents via a new Pkcs12ShroudedKeyBag from a byte-based password in a span and returns the newly created bag instance.

AddShroudedKey(AsymmetricAlgorithm, ReadOnlySpan<Char>, PbeParameters)

Adds an encrypted asymmetric private key to the SafeContents via a new Pkcs12ShroudedKeyBag from a character-based password in a span and returns the newly created bag instance.

AddShroudedKey(AsymmetricAlgorithm, String, PbeParameters)

Adds an encrypted asymmetric private key to the SafeContents via a new Pkcs12ShroudedKeyBag from a character-based password in a string and returns the newly created bag instance.

Decrypt(Byte[])

Decrypts the contents of this SafeContents value using a byte-based password from an array.

Decrypt(ReadOnlySpan<Byte>)

Decrypts the contents of this SafeContents value using a byte-based password from a span.

Decrypt(ReadOnlySpan<Char>)

Decrypts the contents of this SafeContents value using a character-based password from a span.

Decrypt(String)

Decrypts the contents of this SafeContents value using a character-based password from a string.

Equals(Object)

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

(Inherited from Object)
GetBags()

Gets an enumerable representation of the SafeBag values contained within the SafeContents.

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)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to