X509WindowsSecurityToken Constructor (X509Certificate2, WindowsIdentity)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the X509WindowsSecurityToken class using the specified X.509 certificate and Windows domain or computer account.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public X509WindowsSecurityToken(
	X509Certificate2 certificate,
	WindowsIdentity windowsIdentity
)

Parameters

certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2

An X509Certificate2 that contains the X.509 certificate.

windowsIdentity
Type: System.Security.Principal.WindowsIdentity

A WindowsIdentity that represents the identity of a Windows domain or computer account.

This constructor creates a unique identifier for the X509WindowsSecurityToken security token and assigns that value to the Id property.

.NET Framework
Available since 3.0
Return to top
Show: