Saml2SecurityTokenHandler.CreateWindowsIdentity(String) Method

Definition

Creates a WindowsIdentity object using the specified User Principal Name (UPN).

C#
protected virtual System.Security.Principal.WindowsIdentity CreateWindowsIdentity(string upn);

Parameters

upn
String

The UPN to use to create the identity.

Returns

The Windows identity that was created.

Exceptions

upn is null or an empty string.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1