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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(PerunSession sess, String userLogin, String newPassword) voidcheckLoginFormat(PerunSession sess, String login) voidcheckPassword(PerunSession sess, String userLogin, String password) voidcheckPasswordStrength(PerunSession sess, String login, String password) voidcreateAlternativePassword(PerunSession sess, User user, String passwordId, String password) voiddeleteAlternativePassword(PerunSession sess, User user, String passwordId) voiddeletePassword(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.voidreservePassword(PerunSession sess, String userLogin, String password) voidreserveRandomPassword(PerunSession sess, String userLogin) voidvalidatePassword(PerunSession sess, String userLogin, User user) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.metacentrum.perun.core.implApi.modules.pwdmgr.PasswordManagerModule
loginExist
-
Constructor Details
-
DummyPasswordManagerModule
public DummyPasswordManagerModule()
-
-
Method Details
-
changePassword
- Specified by:
changePasswordin interfacePasswordManagerModule
-
checkLoginFormat
- Specified by:
checkLoginFormatin interfacePasswordManagerModule
-
checkPassword
- Specified by:
checkPasswordin interfacePasswordManagerModule
-
checkPasswordStrength
- Specified by:
checkPasswordStrengthin interfacePasswordManagerModule
-
createAlternativePassword
public void createAlternativePassword(PerunSession sess, User user, String passwordId, String password) - Specified by:
createAlternativePasswordin interfacePasswordManagerModule
-
deleteAlternativePassword
- Specified by:
deleteAlternativePasswordin interfacePasswordManagerModule
-
deletePassword
- Specified by:
deletePasswordin interfacePasswordManagerModule
-
generateAccount
- Specified by:
generateAccountin interfacePasswordManagerModule
-
generateRandomPassword
- Specified by:
generateRandomPasswordin interfacePasswordManagerModule
-
handleSponsorship
public String handleSponsorship(PerunSession sess, SponsoredUserData userData) throws PasswordStrengthException Description copied from interface:PasswordManagerModuleHandles 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:
handleSponsorshipin 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:
reservePasswordin interfacePasswordManagerModule
-
reserveRandomPassword
- Specified by:
reserveRandomPasswordin interfacePasswordManagerModule
-
validatePassword
public void validatePassword(PerunSession sess, String userLogin, User user) throws InvalidLoginException - Specified by:
validatePasswordin interfacePasswordManagerModule- Throws:
InvalidLoginException
-