@Exported public class NTSystem extends Object
This class implementation retrieves and makes available NT security information for the current user.
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()
Copyright © 1998, 2025, Oracle and/or its affiliates. All rights reserved.