共用方式為


SigningCredentials 建構函式

定義

初始化 SigningCredentials 類別的新執行個體。

多載

SigningCredentials(SecurityKey, String, String)

初始化 SigningCredentials 類別的新執行個體。

SigningCredentials(SecurityKey, String, String, SecurityKeyIdentifier)

初始化 SigningCredentials 類別的新執行個體。

SigningCredentials(SecurityKey, String, String)

初始化 SigningCredentials 類別的新執行個體。

public:
 SigningCredentials(System::IdentityModel::Tokens::SecurityKey ^ signingKey, System::String ^ signatureAlgorithm, System::String ^ digestAlgorithm);
public SigningCredentials (System.IdentityModel.Tokens.SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm);
new System.IdentityModel.Tokens.SigningCredentials : System.IdentityModel.Tokens.SecurityKey * string * string -> System.IdentityModel.Tokens.SigningCredentials
Public Sub New (signingKey As SecurityKey, signatureAlgorithm As String, digestAlgorithm As String)

參數

signingKey
SecurityKey

SecurityKey,其中包含用來產生數位簽章的密碼編譯金鑰。

signatureAlgorithm
String

表示密碼編譯演算法的 URI,此演算法會用來產生數位簽章。

digestAlgorithm
String

表示密碼編譯演算法的 URI,此演算法會用來計算要被數位簽署之 SOAP 訊息部分的摘要。

備註

使用 SecurityAlgorithms 類別,即可指定 signatureAlgorithmdigestAlgorithm 參數。 SecurityAlgorithms 類別,其中包含用來表示密碼編譯演算法的一組靜態常數字串。 擁有 Signature 後置字元的成員可以用來指定 signatureAlgorithm 參數,而擁有 Digest 後置字元的成員可以用來指定 digestAlgorithm 參數。

適用於

SigningCredentials(SecurityKey, String, String, SecurityKeyIdentifier)

初始化 SigningCredentials 類別的新執行個體。

public:
 SigningCredentials(System::IdentityModel::Tokens::SecurityKey ^ signingKey, System::String ^ signatureAlgorithm, System::String ^ digestAlgorithm, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ signingKeyIdentifier);
public SigningCredentials (System.IdentityModel.Tokens.SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm, System.IdentityModel.Tokens.SecurityKeyIdentifier signingKeyIdentifier);
new System.IdentityModel.Tokens.SigningCredentials : System.IdentityModel.Tokens.SecurityKey * string * string * System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.IdentityModel.Tokens.SigningCredentials
Public Sub New (signingKey As SecurityKey, signatureAlgorithm As String, digestAlgorithm As String, signingKeyIdentifier As SecurityKeyIdentifier)

參數

signingKey
SecurityKey

SecurityKey,其中包含用來產生數位簽章的密碼編譯金鑰。

signatureAlgorithm
String

表示密碼編譯演算法的 URI,此演算法會用來產生數位簽章。

digestAlgorithm
String

表示密碼編譯演算法的 URI,此演算法會用來計算要被數位簽署之 SOAP 訊息部分的摘要。

signingKeyIdentifier
SecurityKeyIdentifier

SecurityKeyIdentifier,其中指定表示金鑰的識別碼,該金鑰會用來建立數位簽章。

備註

使用 SecurityAlgorithms 類別,即可指定 signatureAlgorithmdigestAlgorithm 參數。 SecurityAlgorithms 類別,其中包含用來表示密碼編譯演算法的一組靜態常數字串。 擁有 Signature 後置字元的成員可以用來指定 signatureAlgorithm 參數,而擁有 Digest 後置字元的成員可以用來指定 digestAlgorithm 參數。

適用於