JwtSecurityTokenHandler.ResolveTokenDecryptionKey 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.
Returns a SecurityKey to use when decryption a JWE.
protected virtual Microsoft.IdentityModel.Tokens.SecurityKey ResolveTokenDecryptionKey (string token, System.IdentityModel.Tokens.Jwt.JwtSecurityToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ResolveTokenDecryptionKey : string * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
override this.ResolveTokenDecryptionKey : string * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
Protected Overridable Function ResolveTokenDecryptionKey (token As String, jwtToken As JwtSecurityToken, validationParameters As TokenValidationParameters) As SecurityKey
Parameters
- jwtToken
- JwtSecurityToken
The JwtSecurityToken that is being decrypted.
- validationParameters
- TokenValidationParameters
A TokenValidationParameters required for validation.
Returns
Returns a SecurityKey to use for signature validation.
Remarks
If key fails to resolve, then null is returned
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