Interface ResettablePasswordCredential

    • Method Detail

      • resetPassword

        void resetPassword​(String username,
                           String password)
                    throws PasswordResetException
        Resets the password for the given user. If there is an error setting the password due to a policy violation, a PasswordResetException is thrown, which should be recoverable (the user could try a different password). Any other error is likely a system error that is not recoverable (by trying a different password).
        Parameters:
        username - The user account to reset
        password - The new password to set
        Throws:
        PasswordResetException - if password reset fails
      • isPasswordResettable

        boolean isPasswordResettable()
        Indicate whether passwords can be changed in the current state.

        In some cases implementing this interface is not sufficient for enabling password changes through a PasswordCredentialValidator, it could also depend on some system configuration or current condition. For example, passwords can only be changed in Active Directory if SSL is enabled on the LDAP data store.

        If this method returns false, it's recommended that a warning be logged indicating the reason and to help the admin resolve the issue.
        Returns:
        if conditions allow for password changes
      • getNameAttribute

        String getNameAttribute()
        The attribute/field that contains for the common name for the user. This value is used for email communication with the user.
      • getMailAttribute

        String getMailAttribute()
        The attribute/field that contains the registered email for the user. This value is used for email communication with the user.
      • getSmsAttribute

        String getSmsAttribute()
        The attribute/field that contains the phone number to send the password reset SMS text to.
      • getPingIdUsernameAttribute

        String getPingIdUsernameAttribute()
        The attribute/field containing the username to use for PingID based password reset.
      • getMailVerifiedAttribute

        String getMailVerifiedAttribute()
        The boolean attribute/field that contains the status of email verification for the user.