APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.security.auth.module

public Class NTSystem

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private String
private String
private String[]
private long
private String
private String
private String

Constructor Summary

AccessConstructor and Description
public
NTSystem()

Instantiate an NTSystem and load the native library to access the underlying system information.

pack-priv
NTSystem(boolean debug)

Instantiate an NTSystem and load the native library to access the underlying system information.

Method Summary

Modifier and TypeMethod and Description
private native void
getCurrent(boolean debug)

public String

Returns:

the domain for the current NT user.
getDomain
()

Get the domain for the current NT user.

public String

Returns:

a printable SID for the current NT user's domain.
getDomainSID
()

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

public String[]

Returns:

the group SIDs for the current NT user.
getGroupIDs
()

Get the printable group SIDs for the current NT user.

public synchronized long

Returns:

an impersonation token for the current NT user.
getImpersonationToken
()

Get an impersonation token for the current NT user.

private native long
public String

Returns:

the username for the current NT user.
getName
()

Get the username for the current NT user.

public String

Returns:

the primary group SID for the current NT user.
getPrimaryGroupID
()

Get a printable primary group SID for the current NT user.

public String

Returns:

a printable SID for the current NT user.
getUserSID
()

Get a printable SID for the current NT user.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

domainback to summary
private String domain
domainSIDback to summary
private String domainSID
groupIDsback to summary
private String[] groupIDs
impersonationTokenback to summary
private long impersonationToken
primaryGroupIDback to summary
private String primaryGroupID
userNameback to summary
private String userName
userSIDback to summary
private String userSID

Constructor Detail

NTSystemback to summary
public NTSystem()

Instantiate an NTSystem and load the native library to access the underlying system information.

NTSystemback to summary
pack-priv NTSystem(boolean debug)

Instantiate an NTSystem and load the native library to access the underlying system information.

Method Detail

getCurrentback to summary
private native void getCurrent(boolean debug)
getDomainback to summary
public String getDomain()

Get the domain for the current NT user.

Returns:String

the domain for the current NT user.

getDomainSIDback to summary
public String getDomainSID()

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

Returns:String

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

getGroupIDsback to summary
public String[] getGroupIDs()

Get the printable group SIDs for the current NT user.

Returns:String[]

the group SIDs for the current NT user.

getImpersonationTokenback to summary
public synchronized long getImpersonationToken()

Get an impersonation token for the current NT user.

Returns:long

an impersonation token for the current NT user.

getImpersonationToken0back to summary
private native long getImpersonationToken0()
getNameback to summary
public String getName()

Get the username for the current NT user.

Returns:String

the username for the current NT user.

getPrimaryGroupIDback to summary
public String getPrimaryGroupID()

Get a printable primary group SID for the current NT user.

Returns:String

the primary group SID for the current NT user.

getUserSIDback to summary
public String getUserSID()

Get a printable SID for the current NT user.

Returns:String

a printable SID for the current NT user.

loadNativeback to summary
private void loadNative()
Annotations
@SuppressWarnings:restricted