Saml2SecurityTokenHandler.GetEncryptingCredentials Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for