X509NTAuthChainTrustValidator.Validate Method (X509Certificate2)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Validates the specified X.509 certificate.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
Parameters
- certificate
-
Type:
System.Security.Cryptography.X509Certificates.X509Certificate2
The X.509 certificate to validate.
Exception | Condition |
---|---|
ArgumentNullException | certificate is null. |
SecurityTokenValidationException | Validation of the X.509 certificate failed. |
Throws a SecurityTokenValidationException exception if validation fails.
.NET Framework
Available since 4.5
Available since 4.5
Show: