Op Englesch liesen Editéieren

Deelen iwwer


Pkcs12SecretBag Class

Definition

Represents the SecretBag from PKCS#12, a container whose contents are arbitrary data with a type identifier. This class cannot be inherited.

C#
public sealed class Pkcs12SecretBag : System.Security.Cryptography.Pkcs.Pkcs12SafeBag
Inheritance
Pkcs12SecretBag

Properties

Attributes

Gets the modifiable collection of attributes to encode with the SafeBag value.

(Inherited from Pkcs12SafeBag)
EncodedBagValue

Gets the ASN.1 BER encoding of the contents of this SafeBag.

(Inherited from Pkcs12SafeBag)
SecretValue

Gets a memory value containing the BER-encoded contents of the bag.

Methods

Encode()

Encodes the SafeBag value and returns it as a byte array.

(Inherited from Pkcs12SafeBag)
GetBagId()

Gets the Object Identifier (OID) identifying the content type of this SafeBag.

(Inherited from Pkcs12SafeBag)
GetSecretType()

Gets the Object Identifier (OID) which identifies the data type of the secret value.

TryEncode(Span<Byte>, Int32)

Attempts to encode the SafeBag value into a provided buffer.

(Inherited from Pkcs12SafeBag)

Applies to

Produkt Versiounen
.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