Creates an impersonate-capable WindowsIdentity from an X.509 Certificate which maps to a Windows user using the WindowsTokenService.
Namespace: Microsoft.IdentityModel.WindowsTokenService
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim certificate As X509Certificate2
Dim returnValue As WindowsIdentity

returnValue = S4UClient.CertificateLogon(certificate)

Syntax

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

Parameters

certificate

Return Value

Returns WindowsIdentity.

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