Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.GetEncryptingCredentials Method

.NET Framework 4.5

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.

ExceptionCondition
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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft