Class CaptchaBean

java.lang.Object
io.goobi.viewer.managedbeans.CaptchaBean
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class CaptchaBean extends Object implements Serializable
Handles security question checks.
See Also:
  • Constructor Details

    • CaptchaBean

      public CaptchaBean()
    • CaptchaBean

      public CaptchaBean(Configuration config)
  • Method Details

    • resetSecurityQuestion

      public boolean resetSecurityQuestion()
      Selects a random security question from configured list and sets currentSecurityQuestion to it.
      Returns:
      always true (do not change since that would break rendered conditions on security questions in xhtml)
    • checkAnswer

      public boolean checkAnswer()
      Returns:
      true if answer correct; false otherwise
    • getSecurityQuestion

      public SecurityQuestion getSecurityQuestion()
      Returns:
      the securityQuestion
    • getSecurityAnswer

      public String getSecurityAnswer()
      Returns:
      the securityAnswer
    • setSecurityAnswer

      public void setSecurityAnswer(String securityAnswer)
      Parameters:
      securityAnswer - the securityAnswer to set