Class DummyPasswordManagerModule
java.lang.Object
cz.metacentrum.perun.core.impl.modules.pwdmgr.DummyPasswordManagerModule
- All Implemented Interfaces:
PasswordManagerModule
Dummy password module for debugging.
- Author:
- Martin Kuba makub@ics.muni.cz
-
Field Summary
Fields inherited from interface cz.metacentrum.perun.core.implApi.modules.pwdmgr.PasswordManagerModule
ALT_PASSWORD_PREFIX, BIRTH_DAY_KEY, BIRTH_NUMBER_KEY, FIRST_NAME_KEY, LAST_NAME_KEY, LOGIN_PREFIX, MAIL_KEY, PASSWORD_KEY, TITLE_AFTER_KEY, TITLE_BEFORE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changePassword
(PerunSession sess, String userLogin, String newPassword) void
checkLoginFormat
(PerunSession sess, String login) void
checkPassword
(PerunSession sess, String userLogin, String password) void
checkPasswordStrength
(PerunSession sess, String login, String password) void
createAlternativePassword
(PerunSession sess, User user, String passwordId, String password) void
deleteAlternativePassword
(PerunSession sess, User user, String passwordId) void
deletePassword
(PerunSession sess, String userLogin) generateAccount
(PerunSession sess, Map<String, String> parameters) generateRandomPassword
(PerunSession sess, String login) handleSponsorship
(PerunSession sess, SponsoredUserData userData) Handles member's sponsorship in given namespace.void
reservePassword
(PerunSession sess, String userLogin, String password) void
reserveRandomPassword
(PerunSession sess, String userLogin) void
validatePassword
(PerunSession sess, String userLogin, User user) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.pwdmgr.PasswordManagerModule
loginExist
-
Constructor Details
-
DummyPasswordManagerModule
public DummyPasswordManagerModule()
-
-
Method Details
-
changePassword
- Specified by:
changePassword
in interfacePasswordManagerModule
-
checkLoginFormat
- Specified by:
checkLoginFormat
in interfacePasswordManagerModule
-
checkPassword
- Specified by:
checkPassword
in interfacePasswordManagerModule
-
checkPasswordStrength
- Specified by:
checkPasswordStrength
in interfacePasswordManagerModule
-
createAlternativePassword
public void createAlternativePassword(PerunSession sess, User user, String passwordId, String password) - Specified by:
createAlternativePassword
in interfacePasswordManagerModule
-
deleteAlternativePassword
- Specified by:
deleteAlternativePassword
in interfacePasswordManagerModule
-
deletePassword
- Specified by:
deletePassword
in interfacePasswordManagerModule
-
generateAccount
- Specified by:
generateAccount
in interfacePasswordManagerModule
-
generateRandomPassword
- Specified by:
generateRandomPassword
in interfacePasswordManagerModule
-
handleSponsorship
public String handleSponsorship(PerunSession sess, SponsoredUserData userData) throws PasswordStrengthException Description copied from interface:PasswordManagerModule
Handles member's sponsorship in given namespace. Returns login, which should be used in the given namespace. This method is usually used to create an account in external systems.- Specified by:
handleSponsorship
in interfacePasswordManagerModule
- Parameters:
sess
- sessionuserData
- information, about the user for which the sponsorship should be handled- Returns:
- login, or null, if no login was provided nor generated
- Throws:
PasswordStrengthException
- if the password strength is too weak for given namespace
-
reservePassword
- Specified by:
reservePassword
in interfacePasswordManagerModule
-
reserveRandomPassword
- Specified by:
reserveRandomPassword
in interfacePasswordManagerModule
-
validatePassword
public void validatePassword(PerunSession sess, String userLogin, User user) throws InvalidLoginException - Specified by:
validatePassword
in interfacePasswordManagerModule
- Throws:
InvalidLoginException
-