Class SecurityUtils

A set of utilities functions related to security.

System.Object
  Westwind.Utilities.SecurityUtils
public static class SecurityUtils : object

Class Members

MemberDescription

ImpersonateUser

Logs on a user and changes the current process impersonation to that user.

IMPORTANT: Returns a WindowsImpersonationContext and you have to either dispose this instance or call RevertImpersonation with it.

public static WindowsImpersonationContext ImpersonateUser(string username,     string password,     string domain)

RevertImpersonation

Releases an impersonation context and releases associated resources

public static void RevertImpersonation(WindowsImpersonationContext context)

Requirements

Namespace: Westwind.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic