|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.PasswordHelper
This PasswordHelper bean represents the information we get from the user at registration that can help them identify themselves if they have lost their password.
| Field Summary | |
protected String |
theAnswer
the answer that must match |
protected String |
theQuestion
the question to ask |
| Constructor Summary | |
PasswordHelper()
null constructor required by hibernate. |
|
PasswordHelper(String q,
String a)
convenience constructor used in testing that takes a question and answer. |
|
| Method Summary | |
String |
getAnswer()
get the encrypted answer. |
String |
getClearTextAnswer()
get the clear text version of the answer. |
String |
getQuestion()
get the question. |
boolean |
isAnswer(String cta)
Checks the answer provided with the encrypted answer we have stored. |
protected void |
setAnswer(String a)
Set the encrypted answer. |
void |
setClearTextAnswer(String cta)
Set the clear text answer. |
void |
setQuestion(String q)
Set the question. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String theQuestion
protected String theAnswer
| Constructor Detail |
public PasswordHelper()
public PasswordHelper(String q,
String a)
q - The Question.a - The Answer.| Method Detail |
public String getQuestion()
public void setQuestion(String q)
q - The question.public String getAnswer()
protected void setAnswer(String a)
a - The answer to the question.public void setClearTextAnswer(String cta)
cta - The answer to the question in clear text.public String getClearTextAnswer()
public boolean isAnswer(String cta)
cta - The answer to the question in clear text.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||