Редагувати

Поділитися через


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);
public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity);
new System.IdentityModel.Tokens.X509WindowsSecurityToken : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Principal.WindowsIdentity -> System.IdentityModel.Tokens.X509WindowsSecurityToken
Public Sub New (certificate As X509Certificate2, windowsIdentity As 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

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, System::String ^ id);
public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity, string id);
new System.IdentityModel.Tokens.X509WindowsSecurityToken : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Principal.WindowsIdentity * string -> System.IdentityModel.Tokens.X509WindowsSecurityToken
Public Sub New (certificate As X509Certificate2, windowsIdentity As WindowsIdentity, id As String)

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

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

Creates a new instance of X509WindowsSecurityToken.

public:
 X509WindowsSecurityToken(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ authenticationType, System::String ^ id);
public X509WindowsSecurityToken (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Principal.WindowsIdentity windowsIdentity, string authenticationType, string id);
new System.IdentityModel.Tokens.X509WindowsSecurityToken : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Principal.WindowsIdentity * string * string -> System.IdentityModel.Tokens.X509WindowsSecurityToken
Public Sub New (certificate As X509Certificate2, windowsIdentity As WindowsIdentity, authenticationType As String, id As String)

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