JsonWebTokenHandler.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 decrypting a JWE.
protected virtual Microsoft.IdentityModel.Tokens.SecurityKey ResolveTokenDecryptionKey (string token, Microsoft.IdentityModel.JsonWebTokens.JsonWebToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ResolveTokenDecryptionKey : string * Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
override this.ResolveTokenDecryptionKey : string * Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
Protected Overridable Function ResolveTokenDecryptionKey (token As String, jwtToken As JsonWebToken, validationParameters As TokenValidationParameters) As SecurityKey
Parameters
- jwtToken
- JsonWebToken
The JsonWebToken that is being decrypted.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Returns
A SecurityKey to use for signature validation.
Remarks
If key fails to resolve, then null is returned.