public class NTSystem extends Object
Constructor | Description |
---|---|
NTSystem() |
Instantiate an NTSystem and load the native library to access the underlying system information. |
Modifier and Type | Method | Description |
---|---|---|
String |
getDomain() |
Get the domain for the current NT user. |
String |
getDomainSID() |
Get a printable SID for the current NT user's domain. |
String[] |
getGroupIDs() |
Get the printable group SIDs for the current NT user. |
long |
getImpersonationToken() |
Get an impersonation token for the current NT user. |
String |
getName() |
Get the username for the current NT user. |
String |
getPrimaryGroupID() |
Get a printable primary group SID for the current NT user. |
String |
getUserSID() |
Get a printable SID for the current NT user. |
public NTSystem()
NTSystem
and load the native library to access the underlying system information.public String getName()
public String getDomain()
public String getDomainSID()
public String getUserSID()
public String getPrimaryGroupID()
public String[] getGroupIDs()
public long getImpersonationToken()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.security.auth/com/sun/security/auth/module/NTSystem.html