共用方式為


X509WindowsSecurityToken 建構函式

定義

初始化 X509WindowsSecurityToken 類別的新執行個體。

多載

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

使用指定的 X.509 憑證和 Windows 網域或電腦帳戶,初始化 X509WindowsSecurityToken 類別的新執行個體。

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

使用指定的 X.509 憑證、Windows 網域或電腦帳戶,以及唯一識別項,初始化 X509WindowsSecurityToken 類別的新執行個體。

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

建立 X509WindowsSecurityToken 的新執行個體。

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity)

使用指定的 X.509 憑證和 Windows 網域或電腦帳戶,初始化 X509WindowsSecurityToken 類別的新執行個體。

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)

參數

certificate
X509Certificate2

包含 X.509 憑證的 X509Certificate2

windowsIdentity
WindowsIdentity

WindowsIdentity,表示 Windows 網域或電腦帳戶的身分識別。

備註

這個建構函式會產生 X509WindowsSecurityToken 安全性權杖的唯一識別碼,並且會將該值指派為 Id 屬性。

適用於

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String)

使用指定的 X.509 憑證、Windows 網域或電腦帳戶,以及唯一識別項,初始化 X509WindowsSecurityToken 類別的新執行個體。

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)

參數

certificate
X509Certificate2

包含 X.509 憑證的 X509Certificate2

windowsIdentity
WindowsIdentity

WindowsIdentity,表示 Windows 網域或電腦帳戶的身分識別。

id
String

安全性權杖的唯一識別碼。

適用於

X509WindowsSecurityToken(X509Certificate2, WindowsIdentity, String, String)

建立 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)

參數

certificate
X509Certificate2

包含 X.509 憑證的 X509Certificate2

windowsIdentity
WindowsIdentity

表示 Windows 網域或電腦帳戶的識別。

authenticationType
String

權杖的驗證類型。

id
String

安全性權杖的唯一識別碼。

適用於