FileDocCategorySizeDatePackage
NTSystem.javaAPI DocJava SE 6 API2801Tue Jun 10 00:23:22 BST 2008com.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.11, 06/08/06

Fields Summary
private String
userName
private String
domain
private String
domainSID
private String
userSID
private String[]
groupIDs
private String
primaryGroupID
private long
impersonationToken
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.

	loadNative();
	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");