| java.lang.Object org.openharmonise.dav.server.webservice.UserConfigService
UserConfigService | public class UserConfigService (Code) | | This class provides configuration operations for users.
author: Michael Bell version: $Revision: 1.2 $ |
Method Summary | |
public static boolean | hasPasswordExpired(String sUserName, String sPwd) Returns true if the password for the user with the
specified user name and password has expired. | public static boolean | isSuperUser(String sUserName, String sPwd) Returns true if the user with the specified user name
and password is a super user. | public static boolean | isSuperUser(String sUserName, String sPwd, String sCheckUser) Returns true if the user with the specified user name
and password is a super user. | public static boolean | isUserLockedOut(String sUserName) Returns true if the user of the given user name has been
locked out of the system due to too many attempts to log in. | public static void | setIsSuperUser(String sCurrUserName, String sPwd, String sChangeUser, boolean bIsSuper) | public static int | setPassword(String sCurrUserName, String sCurrUserPwd, String sChangeUserName, String sChangeNewPwd) Sets the password on the user with the user name sChangeUserName using
the user with user name sCurrUserName . |
CODE_AUTHENTICATION_FAIL | final public static int CODE_AUTHENTICATION_FAIL(Code) | | Authentication failure code
|
CODE_INVALID_LENGTH | final public static int CODE_INVALID_LENGTH(Code) | | Invalid password length code
|
CODE_INVALID_USER_STATE | final public static int CODE_INVALID_USER_STATE(Code) | | Invalid user state code
|
CODE_NO_ALPHA_CHAR | final public static int CODE_NO_ALPHA_CHAR(Code) | | No alpha characters code
|
CODE_NO_CASE_MIX | final public static int CODE_NO_CASE_MIX(Code) | | No case mix of characters code
|
CODE_NO_NUM_CHAR | final public static int CODE_NO_NUM_CHAR(Code) | | No numeric characters code
|
CODE_PWD_REPEAT | final public static int CODE_PWD_REPEAT(Code) | | Repeated password code
|
CODE_SUCCESS | final public static int CODE_SUCCESS(Code) | | Success code
|
UserConfigService | public UserConfigService()(Code) | | Constructs an instance of this class
|
hasPasswordExpired | public static boolean hasPasswordExpired(String sUserName, String sPwd) throws RemoteException(Code) | | Returns true if the password for the user with the
specified user name and password has expired.
Parameters: sUserName - the user name Parameters: sPwd - the password true if the password for the user with the specified user name and password has expired |
isSuperUser | public static boolean isSuperUser(String sUserName, String sPwd) throws RemoteException(Code) | | Returns true if the user with the specified user name
and password is a super user.
Parameters: sUserName - the user name Parameters: sPwd - the password true if the user with the specified user name and password is a super user |
isSuperUser | public static boolean isSuperUser(String sUserName, String sPwd, String sCheckUser) throws RemoteException(Code) | | Returns true if the user with the specified user name
and password is a super user.
Parameters: sUserName - the user name Parameters: sPwd - the password true if the user with the specified user name and password is a super user |
isUserLockedOut | public static boolean isUserLockedOut(String sUserName)(Code) | | Returns true if the user of the given user name has been
locked out of the system due to too many attempts to log in.
Parameters: sUserName - the user name true if the user of the given user name has been locked out |
setIsSuperUser | public static void setIsSuperUser(String sCurrUserName, String sPwd, String sChangeUser, boolean bIsSuper) throws RemoteException(Code) | | Sets the super user status on the user of the name
sChangeUser using the authority of the user identified
by the user name sCurrUserName and password sPwd
Parameters: sCurrUserName - the user name of the user making the change Parameters: sPwd - the password of the user making the change Parameters: sNewSuperUser - the user name of the user to be changed Parameters: bIsSuper - true if the user to be changed is to be a super user, otherwise false throws: RemoteException - if the current user is not allowed to make the change, there is a pending version of the user to be changed or a general error occurs |
setPassword | public static int setPassword(String sCurrUserName, String sCurrUserPwd, String sChangeUserName, String sChangeNewPwd)(Code) | | Sets the password on the user with the user name sChangeUserName using
the user with user name sCurrUserName .
Parameters: sCurrUserName - the current user name Parameters: sCurrUserPwd - the current user password Parameters: sChangeUserName - the user name of the user to be changed Parameters: sChangeNewPwd - the new password of the user to be changed the success code |
|
|