Interface EmailChangeManager

All Known Implementing Classes:
EmailChangeManagerImpl

public interface EmailChangeManager
Used to change e-mail of a user in a way that they need to prove that they have access to the e-mail they're trying to change to. This is achieved by sending an e-mail message containing a secret. Only and only if a user is able to bring the secret back to Crowd their e-mail is being changed.
Since:
4.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    abort(String username, long directoryId)
    Aborts a pending e-mail validation for a given user in crowd app.
    void
    changeEmail(String token, String username)
    Changes e-mail for a user in crowd app.
    Returns new e-mail address for a e-mail change token.
    getPendingNewEmailByUser(String username, long directoryId)
    Returns new e-mail address for a user in crowd app for whom there's a pending e-mail verification.
    boolean
    hasUserEmailChangePending(String username, long directoryId)
    Returns true if there is a pending e-mail verification for a user in crowd app, false otherwise.
    boolean
    Returns true if e-mail change by end-user feature is available for a given directory.
    boolean
    Returns true if a given token is a valid e-mail change verification token.
    void
    resendEmail(String username, long directoryId)
    Resends an e-mail with a new token for a user in crowd app that has a pending e-mail verification.
    void
    sendEmailAuthorization(String username, String password, long directoryId, String newEmail)
    Starts e-mail change flow for a user in crowd app, by sending two e-mails.