Pkcs12SafeContents Class
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.
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
Pkcs12Safe |
Initializes a new instance of the Pkcs12SafeContents class. |
Confidentiality |
Gets a value that indicates the type of encryption applied to the contents. |
Is |
Gets a value that indicates whether this instance in a read-only state. |
Add |
Adds a certificate to the SafeContents via a new Pkcs12CertBag and returns the newly created bag instance. |
Add |
Adds an asymmetric private key to the SafeContents via a new Pkcs12KeyBag and returns the newly created bag instance. |
Add |
Adds a nested SafeContents to the SafeContents via a new Pkcs12SafeContentsBag and returns the newly created bag instance. |
Add |
Adds a SafeBag to the SafeContents. |
Add |
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. |
Add |
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. |
Add |
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. |
Add |
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. |
Add |
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(Read |
Decrypts the contents of this SafeContents value using a byte-based password from a span. |
Decrypt(Read |
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. |
Get |
Gets an enumerable representation of the SafeBag values contained within the SafeContents. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: