Initializes an instance of ClaimsIdentity from a T:System.Security.Cryptography.X509Certificates.X509Certificate2 with a specified issuer name and the authentication type.
命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim certificate As X509Certificate2 Dim issuer As String Dim authenticationType As String Dim instance As New ClaimsIdentity(certificate, issuer, authenticationType)
语法
声明
Public Sub New ( _
certificate As X509Certificate2, _
issuer As String, _
authenticationType As String _
)
public ClaimsIdentity (
X509Certificate2 certificate,
string issuer,
string authenticationType
)
public:
ClaimsIdentity (
X509Certificate2^ certificate,
String^ issuer,
String^ authenticationType
)
public ClaimsIdentity (
X509Certificate2 certificate,
String issuer,
String authenticationType
)
public function ClaimsIdentity (
certificate : X509Certificate2,
issuer : String,
authenticationType : String
)
参数
- certificate
The X.509 certificate.
- issuer
The issuer name.
- authenticationType
The type of authentication used.
异常
| 异常类型 | 条件 |
|---|
备注
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
请参见
参考
ClaimsIdentity 类
ClaimsIdentity 成员
Microsoft.IdentityModel.Claims 命名空间