Package systems.dennis.auth.util
Class PasswordService
java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.auth.util.PasswordService
@Service
public class PasswordService
extends systems.dennis.shared.utils.ApplicationContext
-
Field Summary
Fields inherited from class systems.dennis.shared.utils.ApplicationContext
CREATED_FIELDS_MAP -
Constructor Summary
ConstructorsConstructorDescriptionPasswordService(systems.dennis.shared.config.WebContext context, LoginPasswordRepo loginPasswordRepo, RoleToUserService roleToUserService, systems.dennis.shared.mail.EmailSender emailSender, TwillioClient twillioClient) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateRandomKey(int len, String chars) generateRandomPassword(int len) getRoles(LoginPassword password, systems.dennis.shared.scopes.model.ScopeModel scope) login(LoginPassword password) static voidtoPassword(String password) static StringMethods inherited from class systems.dennis.shared.utils.ApplicationContext
canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString
-
Constructor Details
-
Method Details
-
main
-
tpw
-
toPassword
-
login
public LoginPassword login(LoginPassword password) throws systems.dennis.shared.exceptions.AccessDeniedException - Throws:
systems.dennis.shared.exceptions.AccessDeniedException
-
generateRandomPassword
-
generateRandomKey
-
reset
- Throws:
systems.dennis.shared.exceptions.ItemNotFoundException
-
generateRandomUsername
-