X509SecurityTokenHandler Constructor (Boolean, X509CertificateValidator)

X509SecurityTokenHandler Constructor (Boolean, X509CertificateValidator)

.NET Framework (current version)
 

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
Available since 4.5
Return to top
Show:
© 2016 Microsoft