Muokkaa

Jaa


Saml2SecurityTokenHandler.GetEncryptingCredentials Method

Definition

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

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

Parameters

tokenDescriptor
SecurityTokenDescriptor

Retrieves some scope encrypting credentials from the Scope object.

Returns

An EncryptingCredentials that represents the token encrypting credentials.

Exceptions

tokenDescriptor is null.

The encrypting credentials retrieved from the token descriptor are asymmetric.

Remarks

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

Applies to