public class WindowsIdentityImpl extends Object implements IWindowsIdentity
| Constructor and Description |
|---|
WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose of the Windows identity.
|
String |
getFqn()
Fully qualified name.
|
IWindowsAccount[] |
getGroups()
Group memberships.
|
byte[] |
getSid()
Sid.
|
String |
getSidString()
Sid.
|
IWindowsImpersonationContext |
impersonate()
Impersonate a logged on user.
|
boolean |
isGuest()
Returns true if the identity represents a Guest account.
|
public WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity)
public String getFqn()
IWindowsIdentitygetFqn in interface IWindowsIdentitypublic IWindowsAccount[] getGroups()
IWindowsIdentitygetGroups in interface IWindowsIdentitypublic byte[] getSid()
IWindowsIdentitygetSid in interface IWindowsIdentitypublic String getSidString()
IWindowsIdentitygetSidString in interface IWindowsIdentitypublic void dispose()
IWindowsIdentitydispose in interface IWindowsIdentitypublic IWindowsImpersonationContext impersonate()
IWindowsIdentityimpersonate in interface IWindowsIdentitypublic boolean isGuest()
IWindowsIdentityisGuest in interface IWindowsIdentityCopyright © 2010-2014 com.github.dblock. All Rights Reserved.