X509WindowsSecurityToken Konstruktorer

Definition

Initierar en ny instans av X509WindowsSecurityToken klassen.

Överlagringar

Name Description
X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

Initierar en ny instans av klassen X509WindowsSecurityToken med det angivna X.509-certifikatet och Windows domän- eller datorkontot.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

Initierar en ny instans av klassen X509WindowsSecurityToken med det angivna X.509-certifikatet, Windows domän- eller datorkonto och unik identifierare.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

Skapar en ny instans av X509WindowsSecurityToken.

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

Initierar en ny instans av klassen X509WindowsSecurityToken med det angivna X.509-certifikatet och Windows domän- eller datorkontot.

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)

Parametrar

certificate
X509Certificate2

En X509Certificate2 som innehåller X.509-certifikatet.

windowsIdentity
WindowsIdentity

En WindowsIdentity som representerar identiteten för en Windows domän eller datorkonto.

Kommentarer

Den här konstruktorn skapar en unik identifierare för X509WindowsSecurityToken säkerhetstoken och tilldelar värdet till Id egenskapen.

Gäller för

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

Initierar en ny instans av klassen X509WindowsSecurityToken med det angivna X.509-certifikatet, Windows domän- eller datorkonto och unik identifierare.

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)

Parametrar

certificate
X509Certificate2

En X509Certificate2 som innehåller X.509-certifikatet.

windowsIdentity
WindowsIdentity

En WindowsIdentity som representerar identiteten för en Windows domän eller datorkonto.

id
String

En unik identifierare för säkerhetstoken.

Gäller för

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

Skapar en ny instans av 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)

Parametrar

certificate
X509Certificate2

En X509Certificate2 som innehåller X.509-certifikatet.

windowsIdentity
WindowsIdentity

Representerar identiteten för en Windows domän eller datorkonto.

authenticationType
String

Autentiseringstypen för token.

id
String

En unik identifierare för säkerhetstoken.

Gäller för