Package waffle.windows.auth.impl
Class WindowsIdentityImpl
java.lang.Object
waffle.windows.auth.impl.WindowsIdentityImpl
- All Implemented Interfaces:
IWindowsIdentity
Windows Identity.
-
Constructor Summary
ConstructorDescriptionWindowsIdentityImpl
(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity) Instantiates a new windows identity impl. -
Method Summary
-
Constructor Details
-
WindowsIdentityImpl
public WindowsIdentityImpl(com.sun.jna.platform.win32.WinNT.HANDLE newWindowsIdentity) Instantiates a new windows identity impl.- Parameters:
newWindowsIdentity
- the new windows identity
-
-
Method Details
-
getFqn
Description copied from interface:IWindowsIdentity
Fully qualified name.- Specified by:
getFqn
in interfaceIWindowsIdentity
- Returns:
- String.
-
getGroups
Description copied from interface:IWindowsIdentity
Group memberships.- Specified by:
getGroups
in interfaceIWindowsIdentity
- Returns:
- Array of accounts.
-
getSid
public byte[] getSid()Description copied from interface:IWindowsIdentity
Sid.- Specified by:
getSid
in interfaceIWindowsIdentity
- Returns:
- Array of bytes.
-
getSidString
Description copied from interface:IWindowsIdentity
Sid.- Specified by:
getSidString
in interfaceIWindowsIdentity
- Returns:
- String.
-
dispose
public void dispose()Description copied from interface:IWindowsIdentity
Dispose of the Windows identity.- Specified by:
dispose
in interfaceIWindowsIdentity
-
impersonate
Description copied from interface:IWindowsIdentity
Impersonate a logged on user.- Specified by:
impersonate
in interfaceIWindowsIdentity
- Returns:
- An impersonation context.
-
isGuest
public boolean isGuest()Description copied from interface:IWindowsIdentity
Returns true if the identity represents a Guest account.- Specified by:
isGuest
in interfaceIWindowsIdentity
- Returns:
- True if the identity represents a Guest account, false otherwise.
-