Creates a T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity associated with a given X509 certificate.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim x509Certificate As X509Certificate2
Dim returnValue As WindowsClaimsIdentity

returnValue = WindowsClaimsIdentity.CertificateLogon(x509Certificate)

Syntax

Visual Basic
Public Shared Function CertificateLogon ( _
		x509Certificate As X509Certificate2 _
) As WindowsClaimsIdentity
C#
public static WindowsClaimsIdentity CertificateLogon (
		X509Certificate2 x509Certificate
)
C++
public:
static WindowsClaimsIdentity^ CertificateLogon (
		X509Certificate2^ x509Certificate
)
J#
public static WindowsClaimsIdentity CertificateLogon (
		X509Certificate2 x509Certificate
)
JScript
public static function CertificateLogon (
		x509Certificate : X509Certificate2
) : WindowsClaimsIdentity

Parameters

x509Certificate

The certificate to use to map to the associated WindowsClaimsIdentity.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also