Package waffle.windows.auth.impl
Class WindowsIdentityImpl
- java.lang.Object
-
- waffle.windows.auth.impl.WindowsIdentityImpl
-
- All Implemented Interfaces:
IWindowsIdentity
public class WindowsIdentityImpl extends Object implements IWindowsIdentity
Windows Identity.- Author:
- dblock[at]dblock[dot]org
-
-
Constructor Summary
Constructors Constructor Description WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity)Instantiates a new windows identity impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose of the Windows identity.StringgetFqn()Fully qualified name.IWindowsAccount[]getGroups()Group memberships.byte[]getSid()Sid.StringgetSidString()Sid.IWindowsImpersonationContextimpersonate()Impersonate a logged on user.booleanisGuest()Returns true if the identity represents a Guest account.
-
-
-
Method Detail
-
getFqn
public String getFqn()
Description copied from interface:IWindowsIdentityFully qualified name.- Specified by:
getFqnin interfaceIWindowsIdentity- Returns:
- String.
-
getGroups
public IWindowsAccount[] getGroups()
Description copied from interface:IWindowsIdentityGroup memberships.- Specified by:
getGroupsin interfaceIWindowsIdentity- Returns:
- Array of accounts.
-
getSid
public byte[] getSid()
Description copied from interface:IWindowsIdentitySid.- Specified by:
getSidin interfaceIWindowsIdentity- Returns:
- Array of bytes.
-
getSidString
public String getSidString()
Description copied from interface:IWindowsIdentitySid.- Specified by:
getSidStringin interfaceIWindowsIdentity- Returns:
- String.
-
dispose
public void dispose()
Description copied from interface:IWindowsIdentityDispose of the Windows identity.- Specified by:
disposein interfaceIWindowsIdentity
-
impersonate
public IWindowsImpersonationContext impersonate()
Description copied from interface:IWindowsIdentityImpersonate a logged on user.- Specified by:
impersonatein interfaceIWindowsIdentity- Returns:
- An impersonation context.
-
isGuest
public boolean isGuest()
Description copied from interface:IWindowsIdentityReturns true if the identity represents a Guest account.- Specified by:
isGuestin interfaceIWindowsIdentity- Returns:
- True if the identity represents a Guest account, false otherwise.
-
-