Package io.goobi.viewer.managedbeans
Class CaptchaBean
java.lang.Object
io.goobi.viewer.managedbeans.CaptchaBean
- All Implemented Interfaces:
- Serializable
Handles security question checks.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanSelects a random security question from configured list and setscurrentSecurityQuestionto it.voidsetSecurityAnswer(String securityAnswer) 
- 
Constructor Details- 
CaptchaBeanpublic CaptchaBean()
- 
CaptchaBean
 
- 
- 
Method Details- 
resetSecurityQuestionpublic boolean resetSecurityQuestion()Selects a random security question from configured list and setscurrentSecurityQuestionto it.- Returns:
- always true (do not change since that would break rendered conditions on security questions in xhtml)
 
- 
checkAnswerpublic boolean checkAnswer()- Returns:
- true if answer correct; false otherwise
 
- 
getSecurityQuestion- Returns:
- the securityQuestion
 
- 
getSecurityAnswer- Returns:
- the securityAnswer
 
- 
setSecurityAnswer- Parameters:
- securityAnswer- the securityAnswer to set
 
 
-