Interface PWResetQuestionModel

  • All Superinterfaces:
    PWResetModel
    All Known Implementing Classes:
    PWResetQuestionModelImpl

    public interface PWResetQuestionModel
    extends PWResetModel
    PWResetQuestionModelImpl defines a set of methods that are required by password reset question viewbean.
    • Method Detail

      • resetPassword

        void resetPassword​(String userDN,
                           String orgDN,
                           Map map)
                    throws PWResetException
        Resets the user password.
        Parameters:
        userDN - user DN
        orgDN - organization DN
        map - map of user question and answer
        Throws:
        PWResetException - if unable to reset the password
      • getSecretQuestions

        Map getSecretQuestions​(String userDN,
                               String orgDN)
        Gets map of secret questions
        Parameters:
        userDN - DN of the user to get the question
        orgDN - DN of the organization
        Returns:
        map of secret question
      • getPWQuestionTitleString

        String getPWQuestionTitleString​(String attrValue)
        Gets password reset question title
        Parameters:
        attrValue - user attribute value
        Returns:
        password reset question title
      • getOKBtnLabel

        String getOKBtnLabel()
        Gets ok button label
        Returns:
        ok button label
      • getPreviousBtnLabel

        String getPreviousBtnLabel()
        Gets previous button label
        Returns:
        previous button label
      • setNoQuestionsInfoMsg

        void setNoQuestionsInfoMsg()
        Sets no questions configured message
      • getMissingAnswerMessage

        String getMissingAnswerMessage()
        Gets missing answer message
        Returns:
        missing answer message
      • isQuestionAvailable

        boolean isQuestionAvailable​(String userDN,
                                    String orgDN)
        Returns true if the secret questions are available for a user
        Parameters:
        userDN - user DN
        orgDN - organization DN
        Returns:
        true if the questions are available, false otherwise
      • getLocalizedStrForQuestion

        String getLocalizedStrForQuestion​(String question)
        Gets the localized string for the question
        Parameters:
        question - i8n key for the question
        Returns:
        localized string for the question
      • getMaxNumQuestions

        int getMaxNumQuestions​(String realmName)
        Returns the maximum number of question that can be display in the reset password page.
        Returns:
        maximum number of question which can be in reset password page