X509WindowsSecurityToken Constructor (X509Certificate2, WindowsIdentity, String, String)

.NET Framework (current version)
 
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.

Creates a new instance of X509WindowsSecurityToken.

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

public X509WindowsSecurityToken(
	X509Certificate2 certificate,
	WindowsIdentity windowsIdentity,
	string authenticationType,
	string id
)

Parameters

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

A X509Certificate2 that contains the X.509 certificate.

windowsIdentity
Type: System.Security.Principal.WindowsIdentity

Represents the identity of a Windows domain or computer account.

authenticationType
Type: System.String

The authentication type for the token.

id
Type: System.String

A unique identifier for the security token.

.NET Framework
Available since 4.0
Return to top
Show: