Interface AccountUnlockablePasswordCredential

    • Method Detail

      • unlockAccount

        boolean unlockAccount​(String username)
        Unlock the account for the given user.
        Parameters:
        username - of the user account to be unlocked
        Returns:
        TRUE if the account unlock was successful
      • isAccountLocked

        boolean isAccountLocked​(String username)
        Checks whether the user account is temporarily locked due to too many failure attempts.
        Parameters:
        username - of the user account
        Returns:
        TRUE if the account is locked
      • isAccountUnlockable

        boolean isAccountUnlockable()
        Indicate whether an account can be unlocked.

        In some cases implementing this interface is not sufficient for enabling account unlock through a PasswordCredentialValidator, it could also depend on factors such as associated LDAP data store.

        If this method returns false, it's recommended to log a warning indicating the reason to help the administrator resolve the issue.
        Returns:
        TRUE is an account is unlockable