次の方法で共有


JwtSecurityTokenHandler.ValidateIssuerSecurityKey Method

Definition

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.

Applies to