Saml2SecurityTokenHandler.GetSigningCredentials Method

Definition

Gets the credentials for signing the assertion.

protected:
 virtual System::IdentityModel::Tokens::SigningCredentials ^ GetSigningCredentials(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual System.IdentityModel.Tokens.SigningCredentials GetSigningCredentials (System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member GetSigningCredentials : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SigningCredentials
override this.GetSigningCredentials : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SigningCredentials
Protected Overridable Function GetSigningCredentials (tokenDescriptor As SecurityTokenDescriptor) As SigningCredentials

Parameters

tokenDescriptor
SecurityTokenDescriptor

The token descriptor.

Returns

A SigningCredentials that represents the credentials for signing the assertion.

Exceptions

tokenDescriptor is null.

Remarks

SAML2 assertions used as security tokens should be signed.

The default implementation uses the SigningCredentials property of the tokenDescriptor to retrieve the credentials.

Applies to