Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
X509SecurityTokenHandler Constructor (Boolean, X509CertificateValidator)

X509SecurityTokenHandler Constructor (Boolean, X509CertificateValidator)

.NET Framework 4.6 and 4.5

Initializes a new instance of the X509SecurityTokenHandler class by using a value that indicates whether the certificate should be mapped to a Windows account and the specified certificate validator.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public X509SecurityTokenHandler(
	bool mapToWindows,
	X509CertificateValidator certificateValidator
)

Parameters

mapToWindows
Type: System.Boolean

true if the certificate should be mapped to a Windows account; otherwise, false. Sets the MapToWindows property.

certificateValidator
Type: System.IdentityModel.Selectors.X509CertificateValidator

The certificate validator to use. Sets the CertificateValidator property.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft