SamlSecurityTokenHandler.GetSigningCredentials Method (SecurityTokenDescriptor)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the credentials for signing the assertion.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual SigningCredentials GetSigningCredentials(
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor.

Return Value

Type: System.IdentityModel.Tokens.SigningCredentials

A SigningCredentials that represents the credentials for signing the assertion.

Exception Condition
ArgumentNullException

tokenDescriptor is null.

SAML2 assertions used as security tokens should be signed.

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

.NET Framework
Available since 4.5
Return to top
Show: