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