SecurityKeyIdentifierClause 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SecurityKeyIdentifierClause 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SecurityKeyIdentifierClause(String) |
使用指定的金鑰識別子句類型初始化該類別的新實例 SecurityKeyIdentifierClause 。 |
| SecurityKeyIdentifierClause(String, Byte[], Int32) |
使用指定的金鑰識別子句類型、nonce 及衍生金鑰長度初始化該 SecurityKeyIdentifierClause 類別的新實例。 |
SecurityKeyIdentifierClause(String)
使用指定的金鑰識別子句類型初始化該類別的新實例 SecurityKeyIdentifierClause 。
protected:
SecurityKeyIdentifierClause(System::String ^ clauseType);
protected SecurityKeyIdentifierClause(string clauseType);
new System.IdentityModel.Tokens.SecurityKeyIdentifierClause : string -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Protected Sub New (clauseType As String)
參數
- clauseType
- String
鍵識別子句類型。 設定房產價值 ClauseType 。
備註
當這個安全金鑰識別碼被序列化成 XML 時,該 clauseType 參數會序列化為 ValueType 該 <SecurityTokenReference> 元素的屬性。
適用於
SecurityKeyIdentifierClause(String, Byte[], Int32)
使用指定的金鑰識別子句類型、nonce 及衍生金鑰長度初始化該 SecurityKeyIdentifierClause 類別的新實例。
protected:
SecurityKeyIdentifierClause(System::String ^ clauseType, cli::array <System::Byte> ^ nonce, int length);
protected SecurityKeyIdentifierClause(string clauseType, byte[] nonce, int length);
new System.IdentityModel.Tokens.SecurityKeyIdentifierClause : string * byte[] * int -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Protected Sub New (clauseType As String, nonce As Byte(), length As Integer)
參數
- clauseType
- String
鍵識別子句類型。 設定房產價值 ClauseType 。
- nonce
- Byte[]
其中一個陣列 Byte 包含用來建立衍生金鑰的 nonce。 設定方法回傳 GetDerivationNonce() 的值。
- length
- Int32
導出金鑰的大小。 設定房產價值 DerivationLength 。
備註
Windows Communication Foundation(WCF)不支援建立隱含衍生金鑰識別碼。 然而,WCF 會處理包含隱含金鑰識別碼的 SOAP 訊息。