public class AsyncForgottenLoginManagerImpl extends Object implements AsyncForgottenLoginManager
Constructor and Description |
---|
AsyncForgottenLoginManagerImpl(Executor transactionalExecutor,
ForgottenLoginManager forgottenLoginManager,
CrowdApplicationFactory crowdApplicationFactory) |
Modifier and Type | Method and Description |
---|---|
void |
sendResetLink(String username,
int tokenExpirySeconds)
Asynchronously sends a reset link to the first user with the matching username from all the active directories assigned
to the application.
|
void |
sendUsernames(String email)
Asynchronously sends the usernames associated with the given email address.
|
public AsyncForgottenLoginManagerImpl(Executor transactionalExecutor, ForgottenLoginManager forgottenLoginManager, CrowdApplicationFactory crowdApplicationFactory)
public void sendUsernames(String email)
AsyncForgottenLoginManager
Asynchronously sends the usernames associated with the given email address. No email will be sent if there are no usernames
associated with a given email
.
sendUsernames
in interface AsyncForgottenLoginManager
email
- email address of the userpublic void sendResetLink(String username, int tokenExpirySeconds)
AsyncForgottenLoginManager
sendResetLink
in interface AsyncForgottenLoginManager
username
- username of the user to send the password reset linktokenExpirySeconds
- number of seconds before generated token expires, or DEFAULT_TOKEN_EXPIRY_SECONDSCopyright © 2020 Atlassian. All rights reserved.