Class UserPasswordExpiryService


public class UserPasswordExpiryService extends CayenneService
Provides methods around user password expiry.
Since:
24.10.0
  • Constructor Details

    • UserPasswordExpiryService

      public UserPasswordExpiryService()
  • Method Details

    • checkAndSetPasswordExpiry

      public int checkAndSetPasswordExpiry()
      Checks and sets the changePasswordAfterLogin flag for users who have not changed their passwords since (PASSWORD_EXPIRY_PARAMETER) days parameter of the SecurityManager.
      Returns:
      the number of user accounts for which changePasswordAfterLogin has been set to true
    • checkAndSendPasswordExpiryNotificationEmail

      public int checkAndSendPasswordExpiryNotificationEmail()
      Checks and sends the password expiry reminder email to users before password expiry based on PASSWORD_EXPIRY_REMINDER days parameter of security manager.
      Returns:
      the number of emails queued to be sent for users