Interface PasswordPolicyResponse

    • Method Detail

      • getTimeBeforeExpiration

        int getTimeBeforeExpiration()
        Returns the time before expiration. Will return -1 if this warning was not present in the response.
        Returns:
        The time before expiration of the password, or -1 if not set
      • setTimeBeforeExpiration

        void setTimeBeforeExpiration​(int timeBeforeExpiration)
        Set a date of expiration for the password.
        Parameters:
        timeBeforeExpiration - The time before the password will expire
      • getGraceAuthNRemaining

        int getGraceAuthNRemaining()
        Returns the number of possible attempts on the password before it's locked. Will return -1 if this warning was not present in the response.
        Returns:
        The number of possible attempts on the password before it's locked
      • setGraceAuthNRemaining

        void setGraceAuthNRemaining​(int graceAuthNRemaining)
        Sets the number of remaining wrong authentication for this password.
        Parameters:
        graceAuthNRemaining - The number of remaining attempts