Saml2SecurityTokenHandler.GetEncryptingCredentials Method (SecurityTokenDescriptor)

.NET Framework (current version)
 

Gets the token encrypting credentials. Override this method to change the token encrypting credentials.

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

protected virtual EncryptingCredentials GetEncryptingCredentials(
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

Retrieves some scope encrypting credentials from the Scope object.

Return Value

Type: System.IdentityModel.Tokens.EncryptingCredentials

An EncryptingCredentials that represents the token encrypting credentials.

Exception Condition
ArgumentNullException

tokenDescriptor is null.

SecurityTokenException

The encrypting credentials retrieved from the token descriptor are asymmetric.

The default implementation retrieves the encrypting credentials from the EncryptingCredentials property of the tokenDescriptor.

.NET Framework
Available since 4.5
Return to top
Show: