JwtSecurityTokenHandler.ValidateSigningToken Method
Validates the SigningToken is an expected value.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Protected Overridable Sub ValidateSigningToken ( _
jwt As JwtSecurityToken _
)
protected virtual void ValidateSigningToken(
JwtSecurityToken jwt
)
protected:
virtual void ValidateSigningToken(
JwtSecurityToken^ jwt
)
abstract ValidateSigningToken :
jwt:JwtSecurityToken -> unit
override ValidateSigningToken :
jwt:JwtSecurityToken -> unit
protected function ValidateSigningToken(
jwt : JwtSecurityToken
)
Parameters
jwt
Type: System.IdentityModel.Tokens.JwtSecurityTokenThe JwtSecurityToken to validate.
Remarks
If the SigningToken is a X509SecurityToken then the X509Certificate2 will be validated using CertificateValidator.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.