public interface ISrvAddTheFirstUser
Service that check if database has any users credentials, if not it serves creating the first user. This is for localhost only!
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String pUserName,
String pPassw,
String pRole)
Add only user/password/role.
|
boolean |
changeUserPasswd(String pUserName,
String pPassw,
String pPasswOld)
Change user password.
|
boolean |
checkIsThereAnyUser()
Checks is there any user.
|
boolean |
getIsThereAnyUser()
Getter for isThereAnyUser.
|
String |
isPasswordStrong(char[] pPassword)
Check if password strong.
|
void |
setIsThereAnyUser(boolean pIsThereAnyUser)
Setter for isThereAnyUser.
|
boolean checkIsThereAnyUser()
throws Exception
Checks is there any user.
Exception - - an exceptionvoid addUser(String pUserName, String pPassw, String pRole) throws Exception
Add only user/password/role.
pUserName - User NamepPassw - User passwordpRole - User roleException - - an exceptionboolean changeUserPasswd(String pUserName, String pPassw, String pPasswOld) throws Exception
Change user password.
pUserName - User NamepPassw - User passwordpPasswOld - User password oldException - - an exceptionString isPasswordStrong(char[] pPassword)
Check if password strong. It implements logic: At least 15 letters and digits! 60% of them must be different! At least 50% of them must be letters! At least 3 of them must be digits! No containing qwerty, 12345, admin, user etc!
pPassword - Passwordboolean getIsThereAnyUser()
Getter for isThereAnyUser.
void setIsThereAnyUser(boolean pIsThereAnyUser)
Setter for isThereAnyUser.
pIsThereAnyUser - referenceCopyright © 2016–2018. All rights reserved.