JwtSecurityTokenHandler.CertificateValidator Property
Gets or sets the X509CertificateValidator responsible for validating the certificate that signed the JwtSecurityToken.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Property CertificateValidator As X509CertificateValidator
public X509CertificateValidator CertificateValidator { get; set; }
public:
property X509CertificateValidator^ CertificateValidator {
X509CertificateValidator^ get ();
void set (X509CertificateValidator^ value);
}
member CertificateValidator : X509CertificateValidator with get, set
function get CertificateValidator () : X509CertificateValidator
function set CertificateValidator (value : X509CertificateValidator)
Property Value
Type: System.IdentityModel.Selectors.X509CertificateValidator
Returns X509CertificateValidator.
Remarks
The X509CertificateValidator returned using the following search path:1. if not null, return this value.
----2. JwtSecurityTokenHandler.Configuration.CertificateValidator if not null, return this value.
----3. DefaultCertificateValidator.
.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.