SigningCredentials Constructors

Definition

Initializes a new instance of the SigningCredentials class.

Overloads

SigningCredentials(SecurityKey, String, String)

Initializes a new instance of the SigningCredentials class.

SigningCredentials(SecurityKey, String, String, SecurityKeyIdentifier)

Initializes a new instance of the SigningCredentials class.

SigningCredentials(SecurityKey, String, String)

Initializes a new instance of the SigningCredentials class.

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)

Parameters

signingKey
SecurityKey

A SecurityKey that contains the cryptographic key that is used to generate the digital signature.

signatureAlgorithm
String

A URI that represents the cryptographic algorithm that is used to generate the digital signature.

digestAlgorithm
String

A URI that represents the cryptographic algorithm that is used to compute the digest for the portion of the SOAP message that is to be digitally signed.

Remarks

Use the SecurityAlgorithms class to specify the signatureAlgorithm and digestAlgorithm parameters. The SecurityAlgorithms class contains a set of static, constant strings that represent cryptographic algorithms. The members that have a Signature suffix can be used to specify the signatureAlgorithm parameter and the members that have a Digest suffix can be used to specify the digestAlgorithm parameter.

Applies to

SigningCredentials(SecurityKey, String, String, SecurityKeyIdentifier)

Initializes a new instance of the SigningCredentials class.

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)

Parameters

signingKey
SecurityKey

A SecurityKey that contains the cryptographic key that is used to generate the digital signature.

signatureAlgorithm
String

A URI that represents the cryptographic algorithm that is used to generate the digital signature.

digestAlgorithm
String

A URI that represents the cryptographic algorithm that is used to compute the digest for the portion of the SOAP message that is to be digitally signed.

signingKeyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier that specifies the identifier that represents the key that is used to create a digital signature.

Remarks

Use the SecurityAlgorithms class to specify the signatureAlgorithm and digestAlgorithm parameters. The SecurityAlgorithms class contains a set of static constant strings that represent cryptographic algorithms. The members that have a Signature suffix can be used to specify the signatureAlgorithm parameter and the members that have a Digest suffix can be used to specify the digestAlgorithm parameter.

Applies to