Package waffle.windows.auth.impl
Class WindowsIdentityImpersonationContextImpl
java.lang.Object
waffle.windows.auth.impl.WindowsIdentityImpersonationContextImpl
- All Implemented Interfaces:
IWindowsImpersonationContext
public class WindowsIdentityImpersonationContextImpl
extends Object
implements IWindowsImpersonationContext
The Class WindowsIdentityImpersonationContextImpl.
-
Constructor Summary
ConstructorDescriptionWindowsIdentityImpersonationContextImpl
(com.sun.jna.platform.win32.WinNT.HANDLE windowsIdentity) Impersonate a logged on user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Terminate the impersonation of a client application.
-
Constructor Details
-
WindowsIdentityImpersonationContextImpl
public WindowsIdentityImpersonationContextImpl(com.sun.jna.platform.win32.WinNT.HANDLE windowsIdentity) Impersonate a logged on user.- Parameters:
windowsIdentity
- Windows identity obtained via LogonUser.
-
-
Method Details
-
revertToSelf
public void revertToSelf()Description copied from interface:IWindowsImpersonationContext
Terminate the impersonation of a client application.- Specified by:
revertToSelf
in interfaceIWindowsImpersonationContext
-