public class WindowsAccountImpl extends Object implements IWindowsAccount
Constructor and Description |
---|
WindowsAccountImpl(com.sun.jna.platform.win32.Advapi32Util.Account newAccount)
Windows Account.
|
WindowsAccountImpl(String userName)
Windows Account.
|
WindowsAccountImpl(String accountName,
String systemName)
Windows Account.
|
Modifier and Type | Method and Description |
---|---|
static String |
getCurrentUsername()
Get the SAM-compatible username of the currently logged-on user.
|
String |
getDomain()
Account domain.
|
String |
getFqn()
Fully qualified username.
|
String |
getName()
Account name.
|
String |
getSidString()
Security identifier.
|
public WindowsAccountImpl(com.sun.jna.platform.win32.Advapi32Util.Account newAccount)
newAccount
- Account.public WindowsAccountImpl(String userName)
userName
- Fully qualified username.public static String getCurrentUsername()
public String getDomain()
getDomain
in interface IWindowsAccount
public String getFqn()
IWindowsAccount
getFqn
in interface IWindowsAccount
public String getName()
getName
in interface IWindowsAccount
public String getSidString()
IWindowsAccount
getSidString
in interface IWindowsAccount
Copyright © 2010–2015 com.github.dblock. All rights reserved.