Package io.goobi.viewer.model.security
Class SecurityQuestion
java.lang.Object
io.goobi.viewer.model.security.SecurityQuestion
-
Constructor Summary
ConstructorDescriptionSecurityQuestion
(String questionKey, Set<String> correctAnswers) Constructor. -
Method Summary
-
Constructor Details
-
SecurityQuestion
Constructor.- Parameters:
questionKey
-correctAnswers
-
-
-
Method Details
-
isAnswerCorrect
- Parameters:
answer
-- Returns:
- true if given answer is among correct answers; false otherwise
-
getQuestionKey
- Returns:
- the questionKey
-
getCorrectAnswers
- Returns:
- the correctAnswers
-
isAnswered
public boolean isAnswered()- Returns:
- the answered
-