Revision 0e53a8de
Added by Andreas Kohlbecker over 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/security/IPasswordResetService.java | ||
---|---|---|
17 | 17 |
*/ |
18 | 18 |
public interface IPasswordResetService extends IRateLimitedService { |
19 | 19 |
|
20 |
|
|
21 | 20 |
/** |
22 | 21 |
* Create a request token and send it to the user via email. |
23 | 22 |
* |
... | ... | |
42 | 41 |
* @return A <code>Future</code> for a <code>Boolean</code> flag. The |
43 | 42 |
* boolean value will be <code>false</code> in case the max access |
44 | 43 |
* rate for this method has been exceeded and a time out has |
45 |
* occurred. Internal error states that may |
|
46 |
* expose sensitive information are intentionally hidden this way
|
|
47 |
* (see above link to the Forgot_Password_Cheat_Sheet).
|
|
44 |
* occurred. Internal error states that may expose sensitive
|
|
45 |
* information are intentionally hidden this way (see above link to
|
|
46 |
* the Forgot_Password_Cheat_Sheet). |
|
48 | 47 |
* @throws MailException |
49 | 48 |
* in case sending the email has failed |
49 |
* @throws EmailAddressNotFoundException |
|
50 |
* in case the provided email address is unknown |
|
50 | 51 |
*/ |
51 |
ListenableFuture<Boolean> emailResetToken(String userNameOrEmail, String passwordRequestFormUrlTemplate) throws MailException; |
|
52 |
ListenableFuture<Boolean> emailResetToken(String userNameOrEmail, String passwordRequestFormUrlTemplate) |
|
53 |
throws MailException, EmailAddressNotFoundException; |
|
52 | 54 |
|
53 | 55 |
/** |
54 |
* |
|
55 |
* @param token |
|
56 |
* the token string |
|
57 |
* @param newPassword |
|
58 |
* The new password to set |
|
59 |
* @return A <code>Future</code> for a <code>Boolean</code> flag. The |
|
60 |
* boolean value will be <code>false</code> in case the max access |
|
61 |
* rate for this method has been exceeded and a time out has |
|
62 |
* occurred. |
|
63 |
* @throws AccountSelfManagementException |
|
64 |
* in case an invalid token has been used |
|
65 |
* @throws MailException |
|
66 |
* in case sending the email has failed |
|
67 |
*/ |
|
56 |
*
|
|
57 |
* @param token
|
|
58 |
* the token string
|
|
59 |
* @param newPassword
|
|
60 |
* The new password to set
|
|
61 |
* @return A <code>Future</code> for a <code>Boolean</code> flag. The
|
|
62 |
* boolean value will be <code>false</code> in case the max access
|
|
63 |
* rate for this method has been exceeded and a time out has
|
|
64 |
* occurred.
|
|
65 |
* @throws AccountSelfManagementException
|
|
66 |
* in case an invalid token has been used
|
|
67 |
* @throws MailException
|
|
68 |
* in case sending the email has failed
|
|
69 |
*/
|
|
68 | 70 |
ListenableFuture<Boolean> resetPassword(String token, String newPassword) throws AccountSelfManagementException; |
69 | 71 |
|
70 |
|
|
71 | 72 |
} |
Also available in: Unified diff
ref #6161 improving method timing for callers & reporting reporting email not found