public class UserInfo extends Object implements DCEReadable
Contains the details of a user account on a remote server.
Modifier and Type | Field and Description |
---|---|
static int |
InfoLevel1 |
static int |
InfoLevel21 |
static int |
InfoLevel3 |
static int |
OperAccounts |
static int |
OperComm |
static int |
OperPrint |
static int |
OperServer |
static int |
PrivAdmin |
static int |
PrivGuest |
static int |
PrivUser |
Constructor and Description |
---|
UserInfo()
Default constructor
|
UserInfo(int lev)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getAccountExpires()
Return the date/time the account expires, or NTTime.Infinity if it does not expire
|
static String |
getAccountTypeAsString(int typ)
Return an account type as a string
|
String |
getApplicationParameter()
Return the application parameter string
|
int |
getBadPasswordCount()
Return the bad password count
|
int |
getCodePage()
Return the code page
|
String |
getComment()
Return the account comment
|
int |
getCountryCode()
Return the country code
|
String |
getDescription()
Return the account description
|
int |
getFlags()
Return the account flags
|
String |
getFullName()
Return the full account name
|
int |
getGroupRID()
Return the group resource id
|
String |
getHomeDirectory()
Return the home directory path
|
String |
getHomeDirectoryDrive()
Return the home drive
|
int |
getInformationLevel()
Get the information level
|
long |
getLastLogoff()
Return the date/time of last logoff
|
long |
getLastLogon()
Return the date/time of last logon, to this server
|
long |
getLastPasswordChange()
Return the date/time of the last password change
|
BitSet |
getLogonHours()
Return the allowed logon hours bit set
|
String |
getLogonScriptPath()
Return the logon script path
|
String |
getLogonServer()
Return the logon server name
|
int |
getPasswordExpired()
Return the password expired flag
|
long |
getPasswordMustChangeBy()
Return the date/time that the password must be changed by
|
int |
getPrivileges()
Return the account provileges
|
String |
getProfile()
Return the profile path
|
int |
getUnitsPerWeek()
Return the allowed units per week
|
String |
getUserName()
Return the account name
|
int |
getUserRID()
Return the user resource id
|
String |
getWorkStations()
Return the workstations that the account is allowed to logon from
|
boolean |
isAutoLocked()
Check if the account is auto locked
|
boolean |
isDisabled()
Check if the account is disabled
|
boolean |
isDomainTrust()
Check if the account is a domain trust account
|
boolean |
isNormalUser()
Check if the account is a normal user account
|
boolean |
isServerTrust()
Check if the account is a server trust account
|
boolean |
isWorkstationTrust()
Check if the account is a workstation trust account
|
int |
numberOfLogons()
Return the number of logons for the account, to this server
|
boolean |
passwordExpires()
Check if the account password expires
|
void |
readObject(DCEBuffer buf)
Read the user information from the DCE buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this user information from the DCE buffer
|
boolean |
requiresHomeDirectory()
Check if the account does not require a home directory
|
boolean |
requiresPassword()
Check if the account does not require a password
|
String |
toString()
Return the user information as a string
|
public static final int InfoLevel1
public static final int InfoLevel3
public static final int InfoLevel21
public static final int PrivGuest
public static final int PrivUser
public static final int PrivAdmin
public static final int OperPrint
public static final int OperComm
public static final int OperServer
public static final int OperAccounts
public UserInfo()
public UserInfo(int lev)
lev
- intpublic final int getInformationLevel()
public final String getLogonServer()
public final long getAccountExpires()
public final String getApplicationParameter()
public final int getBadPasswordCount()
public final int getCodePage()
public final String getComment()
public final String getDescription()
public final int getCountryCode()
public final int getFlags()
public final boolean isDisabled()
public final boolean requiresHomeDirectory()
public final boolean requiresPassword()
public final boolean isNormalUser()
public final boolean isDomainTrust()
public final boolean isWorkstationTrust()
public final boolean isServerTrust()
public final boolean passwordExpires()
public final boolean isAutoLocked()
public final String getFullName()
public final int getGroupRID()
public final String getHomeDirectory()
public final String getHomeDirectoryDrive()
public final long getLastLogoff()
public final long getLastLogon()
public final BitSet getLogonHours()
public final int numberOfLogons()
public final int getPrivileges()
public final String getProfile()
public final int getPasswordExpired()
public final String getLogonScriptPath()
public final int getUnitsPerWeek()
public final String getUserName()
public final int getUserRID()
public final String getWorkStations()
public final long getLastPasswordChange()
public final long getPasswordMustChangeBy()
public void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public static final String getAccountTypeAsString(int typ)
typ
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.