com.ibm.security.auth.module
Class NTSystem
- java.lang.Object
-
- com.ibm.security.auth.module.NTSystem
-
public class NTSystem extends java.lang.ObjectThis class implementation retrieves and makes available NT security information for the current user.
-
-
Constructor Summary
Constructors Constructor and Description NTSystem()Instantiate anNTSystemand load the native library to access the underlying system information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected voidfinalize()Clean up NT resources during garbage collection, in caseLoginContext.logout()was not called.java.lang.StringgetDomain()Get the domain for the current NT user.java.lang.StringgetDomainSID()Get a printable SID for the current NT user's domain.java.lang.String[]getGroupIDs()Get the printable group SIDs for the current NT user.longgetImpersonationToken()Get an impersonation token for the current NT user.java.lang.StringgetName()Get the username for the current NT user.java.lang.StringgetPrimaryGroupID()Get a printable primary group SID for the current NT user.java.lang.StringgetUserSID()Get a printable SID for the current NT user.
-
-
-
Constructor Detail
-
NTSystem
public NTSystem()
Instantiate anNTSystemand load the native library to access the underlying system information.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the username for the current NT user.- Returns:
- the username for the current NT user.
-
getDomain
public java.lang.String getDomain()
Get the domain for the current NT user.- Returns:
- the domain for the current NT user.
-
getDomainSID
public java.lang.String getDomainSID()
Get a printable SID for the current NT user's domain.- Returns:
- a printable SID for the current NT user's domain.
-
getUserSID
public java.lang.String getUserSID()
Get a printable SID for the current NT user.- Returns:
- a printable SID for the current NT user.
-
getPrimaryGroupID
public java.lang.String getPrimaryGroupID()
Get a printable primary group SID for the current NT user.- Returns:
- the primary group SID for the current NT user.
-
getGroupIDs
public java.lang.String[] getGroupIDs()
Get the printable group SIDs for the current NT user.- Returns:
- the group SIDs for the current NT user.
-
getImpersonationToken
public long getImpersonationToken()
Get an impersonation token for the current NT user.- Returns:
- an impersonation token for the current NT user.
-
finalize
protected void finalize()
Clean up NT resources during garbage collection, in caseLoginContext.logout()was not called.- Overrides:
finalizein classjava.lang.Object
-
-