Rediger

Del via


Pkcs12KeyBag Class

Definition

Represents the KeyBag from PKCS#12, a container whose contents are a PKCS#8 PrivateKeyInfo. This class cannot be inherited.

public ref class Pkcs12KeyBag sealed : System::Security::Cryptography::Pkcs::Pkcs12SafeBag
public sealed class Pkcs12KeyBag : System.Security.Cryptography.Pkcs.Pkcs12SafeBag
type Pkcs12KeyBag = class
    inherit Pkcs12SafeBag
Public NotInheritable Class Pkcs12KeyBag
Inherits Pkcs12SafeBag
Inheritance
Pkcs12KeyBag

Constructors

Pkcs12KeyBag(ReadOnlyMemory<Byte>, Boolean)

Initializes a new instance of the Pkcs12KeyBag from an existing encoded PKCS#8 PrivateKeyInfo value.

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)
Pkcs8PrivateKey

Gets a memory value containing the PKCS#8 PrivateKeyInfo value transported by this 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)
TryEncode(Span<Byte>, Int32)

Attempts to encode the SafeBag value into a provided buffer.

(Inherited from Pkcs12SafeBag)

Applies to