JwtSecurityTokenHandler.ValidateIssuerSecurityKey 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.
Validates the SigningKey is an expected value.
protected virtual void ValidateIssuerSecurityKey (Microsoft.IdentityModel.Tokens.SecurityKey key, System.IdentityModel.Tokens.Jwt.JwtSecurityToken securityToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateIssuerSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateIssuerSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey * System.IdentityModel.Tokens.Jwt.JwtSecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateIssuerSecurityKey (key As SecurityKey, securityToken As JwtSecurityToken, validationParameters As TokenValidationParameters)
Parameters
- key
- SecurityKey
The SecurityKey that signed the SecurityToken.
- securityToken
- JwtSecurityToken
The JwtSecurityToken to validate.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Remarks
If the SigningKey is a X509SecurityKey then the X509Certificate2 will be validated using the CertificateValidator.