public class WindowsIdentityImpl extends Object implements IWindowsIdentity
Constructor and Description |
---|
WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE windowsIdentity) |
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 windowsIdentity)
public 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 © 2014. All Rights Reserved.