Entropy 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 Entropy 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| Entropy(Byte[]) |
初始化該類別的新實例 Entropy ,以二進位祕密格式傳送熵。 |
| Entropy(ProtectedKey) |
初始化一個新的類別實例 Entropy ,使用指定的受保護金鑰。 |
| Entropy(Int32) |
初始化類別的新實例 Entropy ,使用隨機產生的位元組。 |
| Entropy(Byte[], EncryptingCredentials) |
初始化該類別的新實例 Entropy ,以加密金鑰格式傳送熵。 |
Entropy(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
A 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
熵內關鍵材料的熵大小InBits。
適用於
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 用於加密金鑰資料的憑證。