Uređivanje

Dijeli putem


X509SecurityTokenHandler Constructors

Definition

Initializes a new instance of the X509SecurityTokenHandler class.

Overloads

X509SecurityTokenHandler()

Initializes a new instance of the X509SecurityTokenHandler class with default values.

X509SecurityTokenHandler(Boolean)

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

X509SecurityTokenHandler(X509CertificateValidator)

Initializes a new instance of the X509SecurityTokenHandler class by using the specified certificate validator.

X509SecurityTokenHandler(Boolean, X509CertificateValidator)

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.

X509SecurityTokenHandler()

Initializes a new instance of the X509SecurityTokenHandler class with default values.

public:
 X509SecurityTokenHandler();
public X509SecurityTokenHandler ();
Public Sub New ()

Remarks

The MapToWindows property is set to false and the PeerOrChainTrust validator is used as the default certificate validator.

Applies to

X509SecurityTokenHandler(Boolean)

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

public:
 X509SecurityTokenHandler(bool mapToWindows);
public X509SecurityTokenHandler (bool mapToWindows);
new System.IdentityModel.Tokens.X509SecurityTokenHandler : bool -> System.IdentityModel.Tokens.X509SecurityTokenHandler
Public Sub New (mapToWindows As Boolean)

Parameters

mapToWindows
Boolean

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

Remarks

The PeerOrChainTrust validator is used as the default certificate validator.

Applies to

X509SecurityTokenHandler(X509CertificateValidator)

Initializes a new instance of the X509SecurityTokenHandler class by using the specified certificate validator.

public:
 X509SecurityTokenHandler(System::IdentityModel::Selectors::X509CertificateValidator ^ certificateValidator);
public X509SecurityTokenHandler (System.IdentityModel.Selectors.X509CertificateValidator certificateValidator);
new System.IdentityModel.Tokens.X509SecurityTokenHandler : System.IdentityModel.Selectors.X509CertificateValidator -> System.IdentityModel.Tokens.X509SecurityTokenHandler
Public Sub New (certificateValidator As X509CertificateValidator)

Parameters

certificateValidator
X509CertificateValidator

The certificate validator to use. Sets the CertificateValidator property.

Remarks

The MapToWindows property is set to false.

Applies to

X509SecurityTokenHandler(Boolean, X509CertificateValidator)

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.

public:
 X509SecurityTokenHandler(bool mapToWindows, System::IdentityModel::Selectors::X509CertificateValidator ^ certificateValidator);
public X509SecurityTokenHandler (bool mapToWindows, System.IdentityModel.Selectors.X509CertificateValidator certificateValidator);
new System.IdentityModel.Tokens.X509SecurityTokenHandler : bool * System.IdentityModel.Selectors.X509CertificateValidator -> System.IdentityModel.Tokens.X509SecurityTokenHandler
Public Sub New (mapToWindows As Boolean, certificateValidator As X509CertificateValidator)

Parameters

mapToWindows
Boolean

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

certificateValidator
X509CertificateValidator

The certificate validator to use. Sets the CertificateValidator property.

Applies to