Class SecurityQuestion

java.lang.Object
io.goobi.viewer.model.security.SecurityQuestion

public class SecurityQuestion extends Object
  • Constructor Details

    • SecurityQuestion

      public SecurityQuestion(String questionKey, Set<String> correctAnswers)
      Constructor.
      Parameters:
      questionKey -
      correctAnswers -
  • Method Details

    • isAnswerCorrect

      public boolean isAnswerCorrect(String answer)
      Parameters:
      answer -
      Returns:
      true if given answer is among correct answers; false otherwise
    • getQuestionKey

      public String getQuestionKey()
      Returns:
      the questionKey
    • getCorrectAnswers

      public Set<String> getCorrectAnswers()
      Returns:
      the correctAnswers
    • isAnswered

      public boolean isAnswered()
      Returns:
      the answered