Entropy 构造函数

定义

初始化 Entropy 类的新实例。

重载

名称 说明
Entropy(Byte[])

初始化类的新实例 Entropy ,以二进制机密格式发送 entropy。

Entropy(ProtectedKey)

使用指定的受保护密钥初始化类的新实例 Entropy

Entropy(Int32)

使用随机生成的字节初始化类的新实例 Entropy

Entropy(Byte[], EncryptingCredentials)

初始化类的新实例 Entropy ,以加密密钥格式发送 entropy。

Entropy(Byte[])

初始化类的新实例 Entropy ,以二进制机密格式发送 entropy。

public:
 Entropy(cli::array <System::Byte> ^ secret);
public Entropy(byte[] secret);
new System.IdentityModel.Protocols.WSTrust.Entropy : byte[] -> System.IdentityModel.Protocols.WSTrust.Entropy
Public Sub New (secret As Byte())

参数

secret
Byte[]

包含键材料的字节数组。

适用于

Entropy(ProtectedKey)

使用指定的受保护密钥初始化类的新实例 Entropy

public:
 Entropy(System::IdentityModel::Protocols::WSTrust::ProtectedKey ^ protectedKey);
public Entropy(System.IdentityModel.Protocols.WSTrust.ProtectedKey protectedKey);
new System.IdentityModel.Protocols.WSTrust.Entropy : System.IdentityModel.Protocols.WSTrust.ProtectedKey -> System.IdentityModel.Protocols.WSTrust.Entropy
Public Sub New (protectedKey As ProtectedKey)

参数

protectedKey
ProtectedKey

表示 ProtectedKey 受保护的密钥,可以是二进制机密或加密密钥。

适用于

Entropy(Int32)

使用随机生成的字节初始化类的新实例 Entropy

public:
 Entropy(int entropySizeInBits);
public Entropy(int entropySizeInBits);
new System.IdentityModel.Protocols.WSTrust.Entropy : int -> System.IdentityModel.Protocols.WSTrust.Entropy
Public Sub New (entropySizeInBits As Integer)

参数

entropySizeInBits
Int32

entropySizeInBits 中密钥材料的 entropySizeInBits。

适用于

Entropy(Byte[], EncryptingCredentials)

初始化类的新实例 Entropy ,以加密密钥格式发送 entropy。

public:
 Entropy(cli::array <System::Byte> ^ secret, System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials);
public Entropy(byte[] secret, System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials);
new System.IdentityModel.Protocols.WSTrust.Entropy : byte[] * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Protocols.WSTrust.Entropy
Public Sub New (secret As Byte(), wrappingCredentials As EncryptingCredentials)

参数

secret
Byte[]

包含键材料的字节数组。

wrappingCredentials
EncryptingCredentials

一个 EncryptingCredentials 表示用于加密密钥材料的凭据。

适用于