Entropy 构造函数

定义

初始化 Entropy 类的新实例。

重载

Entropy(Byte[])

初始化 Entropy 类的新实例以二进制保密格式发送平均信息量。

Entropy(ProtectedKey)

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

Entropy(Int32)

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

Entropy(Byte[], EncryptingCredentials)

初始化 Entropy 类的新实例以加密密钥格式发送平均信息量。

Entropy(Byte[])

初始化 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。

适用于

Entropy(Byte[], EncryptingCredentials)

初始化 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

适用于