X509WindowsSecurityToken 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
安全令牌的唯一标识符。