语言

BinaryKeyIdentifierClause 构造函数

定义

初始化 BinaryKeyIdentifierClause 类的新实例。

重载

名称 说明
BinaryKeyIdentifierClause(String, Byte[], Boolean)

使用指定的键标识符子句类型、二进制数据和指示是否必须克隆二进制数据的值初始化类的新实例 BinaryKeyIdentifierClause 。

BinaryKeyIdentifierClause(String, Byte[], Boolean, Byte[], Int32)

使用指定的键标识符子句类型、二进制数据(指示是否必须克隆二进制数据、nonce 和密钥长度的值)初始化类的新实例 BinaryKeyIdentifierClause 。

BinaryKeyIdentifierClause(String, Byte[], Boolean)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

使用指定的键标识符子句类型、二进制数据和指示是否必须克隆二进制数据的值初始化类的新实例 BinaryKeyIdentifierClause 。

protected:
 BinaryKeyIdentifierClause(System::String ^ clauseType, cli::array <System::Byte> ^ identificationData, bool cloneBuffer);
protected BinaryKeyIdentifierClause(string clauseType, byte[] identificationData, bool cloneBuffer);
new System.IdentityModel.Tokens.BinaryKeyIdentifierClause : string * byte[] * bool -> System.IdentityModel.Tokens.BinaryKeyIdentifierClause
Protected Sub New (clauseType As String, identificationData As Byte(), cloneBuffer As Boolean)

参数

clauseType
String

密钥标识符子句类型。 设置属性的值 ClauseType 。

identificationData
Byte[]

一个数组 Byte ,其中包含表示密钥标识符的二进制数据。

cloneBuffer
Boolean

true 如果克隆传入参数的 identificationData 数组,则为 ;否则为 false。

例外

identificationData 是 null。

identificationData 为零长度。

适用于

BinaryKeyIdentifierClause(String, Byte[], Boolean, Byte[], Int32)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

使用指定的键标识符子句类型、二进制数据(指示是否必须克隆二进制数据、nonce 和密钥长度的值)初始化类的新实例 BinaryKeyIdentifierClause 。

protected:
 BinaryKeyIdentifierClause(System::String ^ clauseType, cli::array <System::Byte> ^ identificationData, bool cloneBuffer, cli::array <System::Byte> ^ derivationNonce, int derivationLength);
protected BinaryKeyIdentifierClause(string clauseType, byte[] identificationData, bool cloneBuffer, byte[] derivationNonce, int derivationLength);
new System.IdentityModel.Tokens.BinaryKeyIdentifierClause : string * byte[] * bool * byte[] * int -> System.IdentityModel.Tokens.BinaryKeyIdentifierClause
Protected Sub New (clauseType As String, identificationData As Byte(), cloneBuffer As Boolean, derivationNonce As Byte(), derivationLength As Integer)

参数

clauseType
String

密钥标识符子句类型。 设置属性的值 ClauseType 。

identificationData
Byte[]

一个数组 Byte ,其中包含表示密钥标识符的二进制数据。 设置方法返回 GetBuffer() 的二进制数据。

cloneBuffer
Boolean

true 如果克隆传入参数的 identificationData 数组,则为 ;否则为 false。

derivationNonce
Byte[]

包含用于创建派生密钥的 nonce 的数组 Byte 。 设置方法返回 GetDerivationNonce() 的值。

derivationLength
Int32

派生密钥的大小。 设置属性的值 DerivationLength 。

例外

identificationData 是 null。

identificationData 为零长度。

注解

derivationNonce指定参数derivationLength时,将使用隐含派生密钥,而不是令牌的直接安全密钥。

无论传入 cloneBuffer 参数的值如何, GetBuffer 该方法始终返回传递给参数的 identificationData 数组的克隆。

适用于