public class WindowsIdentityImpl extends Object implements IWindowsIdentity
Constructor and Description |
---|
WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity)
Instantiates a new windows identity impl.
|
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)
newWindowsIdentity
- the new windows identitypublic String getFqn()
IWindowsIdentity
getFqn
in interface IWindowsIdentity
public IWindowsAccount[] getGroups()
IWindowsIdentity
getGroups
in interface IWindowsIdentity
public byte[] getSid()
IWindowsIdentity
getSid
in interface IWindowsIdentity
public String getSidString()
IWindowsIdentity
getSidString
in interface IWindowsIdentity
public void dispose()
IWindowsIdentity
dispose
in interface IWindowsIdentity
public IWindowsImpersonationContext impersonate()
IWindowsIdentity
impersonate
in interface IWindowsIdentity
public boolean isGuest()
IWindowsIdentity
isGuest
in interface IWindowsIdentity
Copyright © 2010–2015 com.github.dblock. All rights reserved.