org.gnu.jcifs
Class CifsUserInfo

java.lang.Object
  |
  +--org.gnu.jcifs.CifsUserInfo

public final class CifsUserInfo
extends java.lang.Object


Field Summary
static int AF_OP_ACCOUNTS
          Accounts operator
static int AF_OP_COMM
          Communications operator
static int AF_OP_PRINT
          Print operator
static int AF_OP_SERVER
          Server operator
(package private)  int fBadLogons
           
(package private)  java.lang.String fComment
           
(package private)  int fCountryCode
           
(package private)  java.lang.String fHomeDir
           
(package private)  long fLastLogoff
           
(package private)  long fLastLogon
           
(package private)  java.lang.String fLogonServer
           
(package private)  int fNumLogons
           
(package private)  int fOperatorPriv
           
(package private)  int fPasswordAge
           
(package private)  java.lang.String fUserComment
           
(package private)  java.lang.String fUserFullName
           
(package private)  java.lang.String fUserName
           
(package private)  int fUserPriv
           
static int USER_PRIV_ADMIN
          User has Administrator privilege
static int USER_PRIV_GUEST
          User is guest
static int USER_PRIV_USER
          User privilege
 
Constructor Summary
(package private) CifsUserInfo()
          Protected constructor
 
Method Summary
 int getBadLogons()
          Gets the number of incorrect passwords entered since the last successful logon
 java.lang.String getComment()
          Gets comment
 int getCountryCode()
          Gets the country code for the user's language of choice.
 java.lang.String getFullUserName()
          Gets the full name of the user
 java.lang.String getHomeDir()
          Gets the path name of the user's home directory
 java.util.Date getLastLogoff()
          Gets the time when the user last logged off.
 java.util.Date getLastLogon()
          Gets the time when the user last logged on
 int getLogons()
          Gets the number of times this user has logged on.
 java.lang.String getLogonServer()
          Gets the name of the server to which logon requests are sent.
 int getOperatorPrivileges()
          Gets the account operator privileges.
 int getPasswordAge()
          Gets how many seconds have elapsed since the password was last changed
 java.lang.String getUserComment()
          Gets comment about the user
 java.lang.String getUserName()
          Gets the user name for which information is retrieved
 int getUserPrivilege()
          Gets the level of the privilege assigned to the user
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_PRIV_GUEST

public static final int USER_PRIV_GUEST
User is guest

USER_PRIV_USER

public static final int USER_PRIV_USER
User privilege

USER_PRIV_ADMIN

public static final int USER_PRIV_ADMIN
User has Administrator privilege

AF_OP_PRINT

public static final int AF_OP_PRINT
Print operator

AF_OP_COMM

public static final int AF_OP_COMM
Communications operator

AF_OP_SERVER

public static final int AF_OP_SERVER
Server operator

AF_OP_ACCOUNTS

public static final int AF_OP_ACCOUNTS
Accounts operator

fUserName

java.lang.String fUserName

fComment

java.lang.String fComment

fUserComment

java.lang.String fUserComment

fUserFullName

java.lang.String fUserFullName

fUserPriv

int fUserPriv

fOperatorPriv

int fOperatorPriv

fPasswordAge

int fPasswordAge

fHomeDir

java.lang.String fHomeDir

fLastLogon

long fLastLogon

fLastLogoff

long fLastLogoff

fBadLogons

int fBadLogons

fNumLogons

int fNumLogons

fLogonServer

java.lang.String fLogonServer

fCountryCode

int fCountryCode
Constructor Detail

CifsUserInfo

CifsUserInfo()
Protected constructor
Method Detail

getUserName

public java.lang.String getUserName()
Gets the user name for which information is retrieved
Returns:
user name

getComment

public java.lang.String getComment()
Gets comment
Returns:
comment

getUserComment

public java.lang.String getUserComment()
Gets comment about the user
Returns:
comment

getFullUserName

public java.lang.String getFullUserName()
Gets the full name of the user
Returns:
full user name

getUserPrivilege

public int getUserPrivilege()
Gets the level of the privilege assigned to the user
Returns:
privilege (see USER_*)

getOperatorPrivileges

public int getOperatorPrivileges()
Gets the account operator privileges.
Returns:
privilege (see AF_OP_*)

getPasswordAge

public int getPasswordAge()
Gets how many seconds have elapsed since the password was last changed
Returns:
number of seconds

getHomeDir

public java.lang.String getHomeDir()
Gets the path name of the user's home directory
Returns:
home directory

getLastLogon

public java.util.Date getLastLogon()
Gets the time when the user last logged on
Returns:
date or null if last logon is unknown

getLastLogoff

public java.util.Date getLastLogoff()
Gets the time when the user last logged off. A value of null means the last logoff time is unknown.
Returns:
date

getBadLogons

public int getBadLogons()
Gets the number of incorrect passwords entered since the last successful logon
Returns:
bad logon counter

getLogons

public int getLogons()
Gets the number of times this user has logged on. A value of -1 means the number of logons is unknown
Returns:
logon counter

getLogonServer

public java.lang.String getLogonServer()
Gets the name of the server to which logon requests are sent. A null string indicates logon requests should be sent to the domain controller
Returns:
server name

getCountryCode

public int getCountryCode()
Gets the country code for the user's language of choice.
Returns:
country code