CngKeyBlobFormat CngKeyBlobFormat CngKeyBlobFormat CngKeyBlobFormat Class

定義

指定搭配 Microsoft Cryptography Next Generation (CNG) 物件使用的金鑰 BLOB 格式。Specifies a key BLOB format for use with Microsoft Cryptography Next Generation (CNG) objects.

public ref class CngKeyBlobFormat sealed : IEquatable<System::Security::Cryptography::CngKeyBlobFormat ^>
[System.Serializable]
public sealed class CngKeyBlobFormat : IEquatable<System.Security.Cryptography.CngKeyBlobFormat>
type CngKeyBlobFormat = class
    interface IEquatable<CngKeyBlobFormat>
Public NotInheritable Class CngKeyBlobFormat
Implements IEquatable(Of CngKeyBlobFormat)
繼承
CngKeyBlobFormatCngKeyBlobFormatCngKeyBlobFormatCngKeyBlobFormat
屬性
實作

備註

CngKeyBlobFormat類別是一個公用程式類別。The CngKeyBlobFormat class is a utility class. 它包含靜態屬性、 比較方法和私用的內部維護指定金鑰 BLOB 格式名稱的字串。It consists of static properties, comparison methods, and a private, internally maintained string that specifies the key BLOB format name.

靜態屬性傳回CngKeyBlobFormat物件。The static properties return CngKeyBlobFormat objects. 每個物件的內部字串名稱會初始化為金鑰 BLOB 格式名稱對應至靜態屬性的名稱。Each object's internal string name is initialized to the key BLOB format name that corresponds to the name of the static property.

您也可以使用這個類別來建立未涵蓋的靜態屬性的金鑰 BLOB 格式的物件。You can also use this class to create objects for key BLOB formats that are not covered by the static properties.

CNG 的數個類別 (例如CngKey) 接受CngKeyBlobFormat物件透過format參數。Several CNG classes (such as CngKey) accept CngKeyBlobFormat objects through a format parameter. 類別是當收到CngKeyBlobFormat物件,它會擷取內嵌金鑰 BLOB 格式名稱,藉由呼叫物件的Format屬性。When the class receives the CngKeyBlobFormat object, it retrieves the embedded name of the key BLOB format by calling the object's Format property.

因此,CngKeyBlobFormat做為已知的金鑰 BLOB 格式的列舉。Therefore, CngKeyBlobFormat serves as an enumeration of well-known key BLOB formats. 它可讓您使用強型別的值,而非字串來識別已知的金鑰 BLOB 格式。It lets you identify a well-known key BLOB format by using a strongly typed value instead of a string.

建構函式

CngKeyBlobFormat(String) CngKeyBlobFormat(String) CngKeyBlobFormat(String) CngKeyBlobFormat(String)

使用指定的格式初始化 CngKeyBlobFormat 類別的新執行個體。Initializes a new instance of the CngKeyBlobFormat class by using the specified format.

屬性

EccFullPrivateBlob EccFullPrivateBlob EccFullPrivateBlob EccFullPrivateBlob

取得 CngKeyBlobFormat 物件,指定橢圓曲線密碼編譯 (ECC) 金鑰的私密金鑰 BLOB,其中含有明確的曲線參數。Gets a CngKeyBlobFormat object that specifies a private key BLOB for an elliptic curve cryptography (ECC) key which contains explicit curve parameters.

EccFullPublicBlob EccFullPublicBlob EccFullPublicBlob EccFullPublicBlob

取得 CngKeyBlobFormat 物件,指定橢圓曲線密碼編譯 (ECC) 金鑰的公開金鑰 BLOB,其中含有明確的曲線參數。Gets a CngKeyBlobFormat object that specifies a public key BLOB for an elliptic curve cryptography (ECC) key which contains explicit curve parameters.

EccPrivateBlob EccPrivateBlob EccPrivateBlob EccPrivateBlob

取得 CngKeyBlobFormat 物件,指定 Elliptic Curve Cryptography (ECC) 金鑰的私密金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies a private key BLOB for an elliptic curve cryptography (ECC) key.

EccPublicBlob EccPublicBlob EccPublicBlob EccPublicBlob

取得 CngKeyBlobFormat 物件,指定 Elliptic Curve Cryptography (ECC) 金鑰的公開金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies a public key BLOB for an elliptic curve cryptography (ECC) key.

Format Format Format Format

取得目前的 CngKeyBlobFormat 物件指定的金鑰 BLOB 格式名稱。Gets the name of the key BLOB format that the current CngKeyBlobFormat object specifies.

GenericPrivateBlob GenericPrivateBlob GenericPrivateBlob GenericPrivateBlob

取得 CngKeyBlobFormat 物件,指定泛型私密金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies a generic private key BLOB.

GenericPublicBlob GenericPublicBlob GenericPublicBlob GenericPublicBlob

取得 CngKeyBlobFormat 物件,指定泛型公開金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies a generic public key BLOB.

OpaqueTransportBlob OpaqueTransportBlob OpaqueTransportBlob OpaqueTransportBlob

取得 CngKeyBlobFormat 物件,指定不透明傳輸金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies an opaque transport key BLOB.

Pkcs8PrivateBlob Pkcs8PrivateBlob Pkcs8PrivateBlob Pkcs8PrivateBlob

取得 CngKeyBlobFormat 物件,指定 Private Key Information Syntax Standard (PKCS #8) 金鑰 BLOB。Gets a CngKeyBlobFormat object that specifies a Private Key Information Syntax Standard (PKCS #8) key BLOB.

方法

Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat) Equals(CngKeyBlobFormat)

將指定的 CngKeyBlobFormat 物件與目前的 CngKeyBlobFormat 物件相比較。Compares the specified CngKeyBlobFormat object to the current CngKeyBlobFormat object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

將指定的物件與目前的 CngKeyBlobFormat 物件相比較。Compares the specified object to the current CngKeyBlobFormat object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

針對目前 CngKeyBlobFormat 物件中內嵌的金鑰 BLOB 格式產生雜湊值。Generates a hash value for the embedded key BLOB format in the current CngKeyBlobFormat object.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

取得目前的 CngKeyBlobFormat 物件指定的金鑰 BLOB 格式名稱。Gets the name of the key BLOB format that the current CngKeyBlobFormat object specifies.

運算子

Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat) Equality(CngKeyBlobFormat, CngKeyBlobFormat)

判斷兩個 CngKeyBlobFormat 物件是否指定相同的金鑰 BLOB 格式。Determines whether two CngKeyBlobFormat objects specify the same key BLOB format.

Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat) Inequality(CngKeyBlobFormat, CngKeyBlobFormat)

判斷這兩個 CngKeyBlobFormat 物件是否未指定相同的金鑰 BLOB 格式。Determines whether two CngKeyBlobFormat objects do not specify the same key BLOB format.

適用於