Bewerken

Delen via


Pkcs9LocalKeyId Class

Definition

Represents the LocalKeyId attribute from PKCS#9.

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

Remarks

The primary use of the LocalKeyId attribute is to associate an X.509 Public Key Certificate and its matching asymmetric private key in a PKCS#12 PFX file.

Constructors

Pkcs9LocalKeyId()

Initializes a new instance of the Pkcs9LocalKeyId class with an empty key identifier value.

Pkcs9LocalKeyId(Byte[])

Initializes a new instance of the Pkcs9LocalKeyId class with a key identifier specified by a byte array.

Pkcs9LocalKeyId(ReadOnlySpan<Byte>)

Initializes a new instance of the Pkcs9LocalKeyId class with a key identifier specified by a byte span.

Properties

KeyId

Gets a memory value containing the key identifier from this attribute.

Oid

Gets an Oid object that represents the type of attribute associated with this Pkcs9AttributeObject object.

(Inherited from Pkcs9AttributeObject)
RawData

Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.

(Inherited from AsnEncodedData)

Methods

CopyFrom(AsnEncodedData)

Copies information from a AsnEncodedData object.

CopyFrom(AsnEncodedData)

Copies a PKCS #9 attribute type and value for this Pkcs9AttributeObject from the specified AsnEncodedData object.

(Inherited from Pkcs9AttributeObject)
Equals(Object)

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

(Inherited from Object)
Format(Boolean)

Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded data as a string.

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