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.
- Author:
- dblock[at]dblock[dot]org
-
Constructor Summary
ConstructorsConstructorDescriptionWindowsIdentityImpersonationContextImpl(com.sun.jna.platform.win32.WinNT.HANDLE windowsIdentity) Impersonate a logged on user. -
Method Summary
Modifier and TypeMethodDescriptionvoidTerminate 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:IWindowsImpersonationContextTerminate the impersonation of a client application.- Specified by:
revertToSelfin interfaceIWindowsImpersonationContext
-