ProtectedKey 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ProtectedKey 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ProtectedKey(Byte[]) |
初始化該類別的新實例 ProtectedKey ,且不加加密。 |
| ProtectedKey(Byte[], EncryptingCredentials) |
使用指定的加密憑證初始化該類別的新實例 ProtectedKey 。 |
ProtectedKey(Byte[])
初始化該類別的新實例 ProtectedKey ,且不加加密。
public:
ProtectedKey(cli::array <System::Byte> ^ secret);
public ProtectedKey(byte[] secret);
new System.IdentityModel.Protocols.WSTrust.ProtectedKey : byte[] -> System.IdentityModel.Protocols.WSTrust.ProtectedKey
Public Sub New (secret As Byte())
參數
備註
使用此建構器以明文傳送關鍵資料。
WrappingCredentials該屬性在新null實例中被設定為 。ProtectedKey
適用於
ProtectedKey(Byte[], EncryptingCredentials)
使用指定的加密憑證初始化該類別的新實例 ProtectedKey 。
public:
ProtectedKey(cli::array <System::Byte> ^ secret, System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials);
public ProtectedKey(byte[] secret, System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials);
new System.IdentityModel.Protocols.WSTrust.ProtectedKey : byte[] * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Protocols.WSTrust.ProtectedKey
Public Sub New (secret As Byte(), wrappingCredentials As EncryptingCredentials)
參數
- wrappingCredentials
- EncryptingCredentials
一個 EncryptingCredentials 包含用於加密金鑰資料的憑證的
備註
使用此建構函式將密鑰材料加密。