<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0-preview.2.20160.6" />

WindowsIdentity

using Microsoft.Win32.SafeHandles; using System.Collections.Generic; using System.Security.Claims; namespace System.Security.Principal { public class WindowsIdentity : ClaimsIdentity, IDisposable { public new const string DefaultIssuer = "AD AUTHORITY"; public SafeAccessTokenHandle AccessToken { [SecurityCritical] get { throw new PlatformNotSupportedException(); } } public sealed override string AuthenticationType { get { throw new PlatformNotSupportedException(); } } public override IEnumerable<Claim> Claims { get { throw new PlatformNotSupportedException(); } } public IdentityReferenceCollection Groups { get { throw new PlatformNotSupportedException(); } } public TokenImpersonationLevel ImpersonationLevel { get { throw new PlatformNotSupportedException(); } } public virtual bool IsAnonymous { get { throw new PlatformNotSupportedException(); } } public override bool IsAuthenticated { get { throw new PlatformNotSupportedException(); } } public virtual bool IsGuest { get { throw new PlatformNotSupportedException(); } } public virtual bool IsSystem { get { throw new PlatformNotSupportedException(); } } public override string Name { get { throw new PlatformNotSupportedException(); } } public SecurityIdentifier Owner { get { throw new PlatformNotSupportedException(); } } public SecurityIdentifier User { get { throw new PlatformNotSupportedException(); } } public WindowsIdentity(IntPtr userToken) { throw new PlatformNotSupportedException(); } public WindowsIdentity(IntPtr userToken, string type) { throw new PlatformNotSupportedException(); } public WindowsIdentity(string sUserPrincipalName) { throw new PlatformNotSupportedException(); } public override ClaimsIdentity Clone() { throw new PlatformNotSupportedException(); } public void Dispose() { throw new PlatformNotSupportedException(); } protected virtual void Dispose(bool disposing) { throw new PlatformNotSupportedException(); } public static WindowsIdentity GetAnonymous() { throw new PlatformNotSupportedException(); } public static WindowsIdentity GetCurrent() { throw new PlatformNotSupportedException(); } public static WindowsIdentity GetCurrent(bool ifImpersonating) { throw new PlatformNotSupportedException(); } public static WindowsIdentity GetCurrent(TokenAccessLevels desiredAccess) { throw new PlatformNotSupportedException(); } public static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action) { throw new PlatformNotSupportedException(); } public static T RunImpersonated<T>(SafeAccessTokenHandle safeAccessTokenHandle, Func<T> func) { throw new PlatformNotSupportedException(); } } }