X509SecurityTokenAuthenticator Constructors
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.
Initializes a new instance of the X509SecurityTokenAuthenticator class.
Overloads
| Name | Description |
|---|---|
| X509SecurityTokenAuthenticator() |
Initializes a new instance of the X509SecurityTokenAuthenticator class. |
| X509SecurityTokenAuthenticator(X509CertificateValidator) |
Initializes a new instance of the X509SecurityTokenAuthenticator class using the specified certificate validator. |
X509SecurityTokenAuthenticator()
Initializes a new instance of the X509SecurityTokenAuthenticator class.
public:
X509SecurityTokenAuthenticator();
public X509SecurityTokenAuthenticator();
Public Sub New ()
Remarks
When the ValidateTokenCore method is called to authenticate the token, the X.509 certificate is not mapped to a Windows identity and the certificate is validated using a certificate chain.
Applies to
X509SecurityTokenAuthenticator(X509CertificateValidator)
Initializes a new instance of the X509SecurityTokenAuthenticator class using the specified certificate validator.
public:
X509SecurityTokenAuthenticator(System::IdentityModel::Selectors::X509CertificateValidator ^ validator);
public X509SecurityTokenAuthenticator(System.IdentityModel.Selectors.X509CertificateValidator validator);
new System.IdentityModel.Selectors.X509SecurityTokenAuthenticator : System.IdentityModel.Selectors.X509CertificateValidator -> System.IdentityModel.Selectors.X509SecurityTokenAuthenticator
Public Sub New (validator As X509CertificateValidator)
Parameters
- validator
- X509CertificateValidator
A X509CertificateValidator that verifies that the certificate is valid.
Remarks
The X509CertificateValidator class provides a set of pre-defined certificate validation models, such as the ChainTrust property. These validation models can be passed to the validator parameter. When an application requires a custom validation method, derive a class from X509CertificateValidator and override the Validate(X509Certificate2) method. The Validate(X509Certificate2) method is called by the ValidateTokenCore method.
By default, the X509SecurityTokenAuthenticator does not map the X.509 certificate to a Windows identity.