Package waffle.windows.auth.impl
Class WindowsAccountImpl
java.lang.Object
waffle.windows.auth.impl.WindowsAccountImpl
- All Implemented Interfaces:
IWindowsAccount
Windows Account.
-
Constructor Summary
ConstructorDescriptionWindowsAccountImpl
(com.sun.jna.platform.win32.Advapi32Util.Account newAccount) Windows Account.WindowsAccountImpl
(String userName) Windows Account.WindowsAccountImpl
(String accountName, String systemName) Windows Account. -
Method Summary
-
Constructor Details
-
WindowsAccountImpl
public WindowsAccountImpl(com.sun.jna.platform.win32.Advapi32Util.Account newAccount) Windows Account.- Parameters:
newAccount
- Account.
-
WindowsAccountImpl
Windows Account.- Parameters:
userName
- Fully qualified username.
-
WindowsAccountImpl
Windows Account.- Parameters:
accountName
- Username, without a domain or machine.systemName
- Machine name.
-
-
Method Details
-
getCurrentUsername
Get the SAM-compatible username of the currently logged-on user.- Returns:
- String.
-
getDomain
Account domain.- Specified by:
getDomain
in interfaceIWindowsAccount
- Returns:
- String.
-
getFqn
Description copied from interface:IWindowsAccount
Fully qualified username.- Specified by:
getFqn
in interfaceIWindowsAccount
- Returns:
- String.
-
getName
Account name.- Specified by:
getName
in interfaceIWindowsAccount
- Returns:
- String.
-
getSidString
Description copied from interface:IWindowsAccount
Security identifier.- Specified by:
getSidString
in interfaceIWindowsAccount
- Returns:
- String in the S- format.
-