|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.Win32Sid
public class Win32Sid
This class provides methods to look up Windows 32 security identifiers
from account names, and account names from security identifiers.
This class:
win32sid.dll
in the PATH of the virtual machine
loadLibrary.win32sid
or loadLibrary.*
Field Summary | |
---|---|
static java.lang.String |
USAGE
|
Constructor Summary | |
---|---|
Win32Sid()
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getAccount(byte[] sid)
Gets an account (in the form DOMAIN\Username) from a SID. |
java.lang.String |
getAccount(java.lang.String sSID)
Gets an account (in the form DOMAIN\Username) from a SID. |
java.lang.String |
getAccount(java.lang.String sSystemName,
byte[] sid)
Gets an account (in the form DOMAIN\Username) from a SID. |
java.lang.String |
getAccount(java.lang.String sSystemName,
java.lang.String sSID)
Gets an account (in the form DOMAIN\Username) from a SID. |
byte[] |
getSid(java.lang.String sAccount)
Gets a SID from a domain name and username. |
byte[] |
getSid(java.lang.String sSystemName,
java.lang.String sAccount)
Gets a SID from a domain name and username. |
java.lang.String |
getSidAsString(java.lang.String sAccount)
Gets a SID from a domain name and username. |
java.lang.String |
getSidAsString(java.lang.String sSystemName,
java.lang.String sAccount)
Gets a SID from a domain name and username. |
static Win32Sid |
i()
Gets the singleton instance of this class. |
static void |
main(java.lang.String[] args)
Main. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USAGE
Constructor Detail |
---|
public Win32Sid()
Method Detail |
---|
public static Win32Sid i()
public byte[] getSid(java.lang.String sSystemName, java.lang.String sAccount)
sSystemName
- the system to look up the SID on (or
null
to use the local system)sAccount
- the account name (in the form DOMAIN\Username)
null
if it could not be foundpublic byte[] getSid(java.lang.String sAccount)
sAccount
- the account name (in the form DOMAIN\Username)
null
if it could not be foundpublic java.lang.String getSidAsString(java.lang.String sSystemName, java.lang.String sAccount)
sSystemName
- the system to look up the SID on (or
null
to use the local system)sAccount
- the account name (in the form DOMAIN\Username)
null
if it could
not be foundpublic java.lang.String getSidAsString(java.lang.String sAccount)
sAccount
- the account name (in the form DOMAIN\Username)
null
if it could
not be foundpublic java.lang.String getAccount(java.lang.String sSystemName, byte[] sid)
sSystemName
- the system to look up the SID on (or
null
to use the local system)sid
- the SID to get the account for
null
if it could not be foundpublic java.lang.String getAccount(byte[] sid)
sid
- the SID to get the account for
null
if it could not be foundpublic java.lang.String getAccount(java.lang.String sSystemName, java.lang.String sSID)
sSystemName
- the system to look up the SID on (or
null
to use the local system)sSID
- the SID to get the account for (in hex string)
null
if it could not be foundpublic java.lang.String getAccount(java.lang.String sSID)
sSID
- the SID to get the account for (in hex string)
null
if it could not be foundpublic static void main(java.lang.String[] args)
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |