EncryptedKeyIdentifierClause 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一個用來識別加密金鑰的金鑰識別子句。
public ref class EncryptedKeyIdentifierClause sealed : System::IdentityModel::Tokens::BinaryKeyIdentifierClause
public sealed class EncryptedKeyIdentifierClause : System.IdentityModel.Tokens.BinaryKeyIdentifierClause
type EncryptedKeyIdentifierClause = class
inherit BinaryKeyIdentifierClause
Public NotInheritable Class EncryptedKeyIdentifierClause
Inherits BinaryKeyIdentifierClause
- 繼承
備註
通常,除非在建立自訂安全憑證服務時,否則不需要使用。EncryptedKeyIdentifierClause 當安全權杖服務回傳安全權杖時,已發出的安全權杖會包含附加與未附加的安全權杖的參考。 附加參考指的是包含在 SOAP 訊息安全標頭中的安全權杖,而未附加的參考則是未包含在 SOAP 訊息安全標頭中的安全權杖。 這些參考通常能確認發行證券代幣的真實性。 使用該 EncryptedKeyIdentifierClause 類別來參考加密金鑰。 該方法會 GetEncryptedKey 回傳加密金鑰。
WCF 接受相對於線材格式形成良好的包裹金鑰。 線路上指定的金鑰包裹演算法被接受並使用。 尚未驗證其與 SecurityAlgorithmSuite 端點指定的相容性。
建構函式
| 名稱 | Description |
|---|---|
| EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String, Byte[], Int32) |
使用指定的加密金鑰、用於加密金鑰的密碼演算法、金鑰的金鑰識別碼及使用者可讀名稱,初始化該類別的新 EncryptedKeyIdentifierClause 實例。 |
| EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String) |
使用指定的加密金鑰、用於加密金鑰的密碼演算法、加密金鑰的金鑰識別碼以及使用者可讀的名稱,初始化該 EncryptedKeyIdentifierClause 類別的新實例。 |
| EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier) |
使用指定的加密金鑰、用於加密金鑰的密碼演算法,以及加密金鑰的金鑰識別碼,初始化該類別的新 EncryptedKeyIdentifierClause 實例。 |
| EncryptedKeyIdentifierClause(Byte[], String) |
使用指定的加密金鑰及用於加密該金鑰的密碼演算法,初始化該類別的新 EncryptedKeyIdentifierClause 實例。 |
屬性
| 名稱 | Description |
|---|---|
| CanCreateKey |
會得到一個值,表示是否能建立一個金鑰。 (繼承來源 SecurityKeyIdentifierClause) |
| CarriedKeyName |
它會獲得一個使用者可讀的名稱,並與加密金鑰相關聯。 |
| ClauseType |
取得金鑰識別子句類型。 (繼承來源 SecurityKeyIdentifierClause) |
| DerivationLength |
取得導出金鑰的大小。 (繼承來源 SecurityKeyIdentifierClause) |
| EncryptingKeyIdentifier |
會取得加密金鑰的金鑰識別碼。 |
| EncryptionMethod |
取得用於加密金鑰的密碼演算法。 |
| Id |
取得或設定金鑰識別子句的 ID。 (繼承來源 SecurityKeyIdentifierClause) |
方法
| 名稱 | Description |
|---|---|
| CreateKey() |
根據輸入到建構子的參數建立一個鍵。 (繼承來源 SecurityKeyIdentifierClause) |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetBuffer() |
取得代表金鑰識別碼的二進位資料。 (繼承來源 BinaryKeyIdentifierClause) |
| GetDerivationNonce() |
取得用來產生導出金鑰的 nonce 值。 (繼承來源 SecurityKeyIdentifierClause) |
| GetEncryptedKey() |
取得加密金鑰。 |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetRawBuffer() |
取得代表金鑰識別碼的二進位資料。 (繼承來源 BinaryKeyIdentifierClause) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| Matches(Byte[], Int32) |
回傳一個值,表示目前實例的二進位資料是否等同於指定的偏移量。 (繼承來源 BinaryKeyIdentifierClause) |
| Matches(Byte[], String, String) |
回傳一個值,指示此實例的金鑰識別碼是否等同於指定的加密金鑰、加密方法及使用者可讀名稱。 |
| Matches(Byte[]) |
回傳一個值,表示目前實例的二進位資料是否與指定的二進位資料相符。 (繼承來源 BinaryKeyIdentifierClause) |
| Matches(SecurityKeyIdentifierClause) |
回傳一個值,指示此實例的金鑰識別碼是否等同於指定的金鑰識別子句。 |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 |