X509WindowsSecurityToken Constructors

Definition

Initializes a new instance of the X509WindowsSecurityToken class.

Overloads

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate and Windows domain or computer account.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate, Windows domain or computer account, and unique identifier.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

Creates a new instance of X509WindowsSecurityToken.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate and Windows domain or computer account.

public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity);

Parameters

certificate
X509Certificate2

An X509Certificate2 that contains the X.509 certificate.

windowsIdentity
WindowsIdentity

A WindowsIdentity that represents the identity of a Windows domain or computer account.

Remarks

This constructor creates a unique identifier for the X509WindowsSecurityToken security token and assigns that value to the Id property.

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate, Windows domain or computer account, and unique identifier.

public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity, string id);

Parameters

certificate
X509Certificate2

An X509Certificate2 that contains the X.509 certificate.

windowsIdentity
WindowsIdentity

A WindowsIdentity that represents the identity of a Windows domain or computer account.

id
String

A unique identifier of the security token.

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

Creates a new instance of X509WindowsSecurityToken.

public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity, string authenticationType, string id);

Parameters

certificate
X509Certificate2

A X509Certificate2 that contains the X.509 certificate.

windowsIdentity
WindowsIdentity

Represents the identity of a Windows domain or computer account.

authenticationType
String

The authentication type for the token.

id
String

A unique identifier for the security token.

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1