Class SuperUserEmailPasswordLinkService

java.lang.Object
dev.getelements.elements.service.user.SuperUserEmailPasswordLinkService
All Implemented Interfaces:
EmailPasswordLinkService

public class SuperUserEmailPasswordLinkService extends Object implements EmailPasswordLinkService
Superuser (and UNSCOPED) implementation of EmailPasswordLinkService.

Unlike the user-level implementation, this variant does not require a current-user context. It operates on behalf of whoever owns the email UID, making it suitable for Element code that sets credentials programmatically without an authenticated session.

  • Constructor Details

    • SuperUserEmailPasswordLinkService

      public SuperUserEmailPasswordLinkService()
  • Method Details

    • linkEmailPassword

      public User linkEmailPassword(String email, String password)
      Description copied from interface: EmailPasswordLinkService
      Links email+password credentials to the authenticated user's account. The email UID must already be VERIFIED through the email-verification flow. Returns the updated User.
      Specified by:
      linkEmailPassword in interface EmailPasswordLinkService
      Parameters:
      email - the verified email address to link
      password - the password to associate with this email
      Returns:
      the updated User
    • getUserDao

      public UserDao getUserDao()
    • setUserDao

      @Inject public void setUserDao(UserDao userDao)
    • getUserUidDao

      public UserUidDao getUserUidDao()
    • setUserUidDao

      @Inject public void setUserUidDao(UserUidDao userUidDao)
    • getPasswordPolicyValidator

      public PasswordPolicyValidator getPasswordPolicyValidator()
    • setPasswordPolicyValidator

      @Inject public void setPasswordPolicyValidator(PasswordPolicyValidator passwordPolicyValidator)