Class PWResetQuestionModelImpl

    • Constructor Detail

      • PWResetQuestionModelImpl

        public PWResetQuestionModelImpl()
        Constructs a password reset question model object
    • Method Detail

      • getSecretQuestions

        public Map getSecretQuestions​(String uuid,
                                      String realm)
        Returns map of secret questions that is displayed in reset page.
        Specified by:
        getSecretQuestions in interface PWResetQuestionModel
        Parameters:
        uuid - User Id.
        realm - Realm name
        Returns:
        map of secret question.
      • getLocalizedStrForQuestion

        public String getLocalizedStrForQuestion​(String question)
        Gets the localized string for the question
        Specified by:
        getLocalizedStrForQuestion in interface PWResetQuestionModel
        Parameters:
        question - i8n key for the question
        Returns:
        localized string for the question
      • getPWQuestionTitleString

        public String getPWQuestionTitleString​(String attrValue)
        Gets password reset question title
        Specified by:
        getPWQuestionTitleString in interface PWResetQuestionModel
        Parameters:
        attrValue - user attribute value
        Returns:
        password reset question title
      • isUserQuestionEnabled

        public boolean isUserQuestionEnabled​(String orgDN)
        Returns true if user personal question/answer feature is enabled
        Parameters:
        orgDN - DN of organization
        Returns:
        true if the feature is enabled, false otherwise
      • isQuestionAvailable

        public boolean isQuestionAvailable​(String uuid,
                                           String realm)
        Returns true if the secret questions are available for a user
        Specified by:
        isQuestionAvailable in interface PWResetQuestionModel
        Parameters:
        uuid - User Id.
        realm - Realm name.
        Returns:
        true if the questions are available, false otherwise
      • isUserLockout

        public boolean isUserLockout​(String uuid,
                                     String realm)
        Returns true if the user is not active or is lockout.
        Specified by:
        isUserLockout in interface PWResetModel
        Overrides:
        isUserLockout in class PWResetModelImpl
        Parameters:
        uuid - User Id.
        realm - Realm name.
        Returns:
        true if the user is active and is not lockout.
      • getMaxNumQuestions

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