FileDocCategorySizeDatePackage
NTSystem.javaAPI DocJava SE 5 API2927Fri Aug 26 14:56:16 BST 2005com.sun.security.auth.module

NTSystem

public class NTSystem extends Object

This class implementation retrieves and makes available NT security information for the current user.

version
1.9, 12/19/03

Fields Summary
private String
userName
private String
domain
private String
domainSID
private String
userSID
private String[]
groupIDs
private String
primaryGroupID
private long
impersonationToken
static boolean
loadedLibrary
Constructors Summary
public NTSystem()
Instantiate an NTSystem and load the native library to access the underlying system information.


                       
      
	this(false);
    
NTSystem(boolean debug)
Instantiate an NTSystem and load the native library to access the underlying system information.

        if (!loadedLibrary) {
            loadNative();
            loadedLibrary = true;
        }
	getCurrent(debug);
    
Methods Summary
private native voidgetCurrent(boolean debug)

public java.lang.StringgetDomain()
Get the domain for the current NT user.

return
the domain for the current NT user.

        return domain;
    
public java.lang.StringgetDomainSID()
Get a printable SID for the current NT user's domain.

return
a printable SID for the current NT user's domain.

        return domainSID;
    
public java.lang.String[]getGroupIDs()
Get the printable group SIDs for the current NT user.

return
the group SIDs for the current NT user.

        return groupIDs;
    
public longgetImpersonationToken()
Get an impersonation token for the current NT user.

return
an impersonation token for the current NT user.

        return impersonationToken;
    
public java.lang.StringgetName()
Get the username for the current NT user.

return
the username for the current NT user.

        return userName;
    
public java.lang.StringgetPrimaryGroupID()
Get a printable primary group SID for the current NT user.

return
the primary group SID for the current NT user.

        return primaryGroupID;
    
public java.lang.StringgetUserSID()
Get a printable SID for the current NT user.

return
a printable SID for the current NT user.

        return userSID;
    
private voidloadNative()

	System.loadLibrary("jaas_nt");