語言

ProtectedKey 建構函式

定義

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

參數

secret
Byte[]

其中一組 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)

參數

secret
Byte[]

其中一組 Byte 包含了需要保護的關鍵材料。

wrappingCredentials
EncryptingCredentials

一個 EncryptingCredentials 包含用於加密金鑰資料的憑證的

備註

使用此建構函式將密鑰材料加密。

適用於