|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object LifeCycleImpl com.netegrity.imapi.LogicalAttributeAdapter com.netegrity.ims.adapters.ForgottenPasswordHandler
public class ForgottenPasswordHandler
This class is used to set secret questions and answers for validating the user during the Forgotten Password task. A user can specify one or more pairs of questions and answers to verify his or her identity. How the questions and answers are stored in the user store is determined by the choice of schema:
You can customize the way the questions are queried by overriding the
getQuestions()
method.
You can also encrypt the input. By default,the input is not encrypted.
Field Summary | |
---|---|
static java.lang.String |
ANSWER
Constant used to get a single answer stored by itself from the Logical Attribute handler. |
static java.lang.String |
CONTROL_DATA
Constant used to get the ControlData property from the Logical Attribute handler. |
static java.lang.String |
DAYS_BEFORE_REUSE
Constant used to get the number of days before a challenge question can be reused from the Logical Attribute handler. |
static java.lang.String |
ENCRYPTION_KEY
Constant used to get the EncryptionKey property from the Logical Atribute handler. |
static java.lang.String |
MULTIPLE_ANSWERS
Constant used to get a list of answers from the Logical Attribute handler. |
static java.lang.String |
MULTIPLE_QUESTIONS
Constant used to get a list of available questions from the Logical Attribute handler. |
static java.lang.String |
MULTIPLE_QUESTIONS_ANSWERS
Constant used to get all challenge questions and answers when they stored together from the Logical Attribute handler. |
static java.lang.String |
QUESTION
Constant used to get a single question stored by itself from the Logical Attribute handler.. |
static java.lang.String |
QUESTION_ANSWER
Constant used to get a question and an answer, stored together and separated by a delimiter, from the Logical Attribute handler. |
static java.lang.String |
QUESTION_BUNDLE
Constant used to get the .properties file in the IdentityMinder.ear\custom
directory from the Logical Attribute handler. |
static java.lang.String |
QUESTION_DELIMITER
Constant used to get the Delimiter property from the Logical Attribute hamdler. |
static java.lang.String |
QUESTION_FILE
Constant used to get the QuestionFile property from the Logical Attribute handler. |
static java.lang.String |
QUESTION_MARK
Denotes the "?" character, the default delimiter between the question and its answer when they are stored together. |
static java.lang.String |
SCHEMA
Constant used to get the schema type from the Logical Attribute handler. |
static java.lang.String |
SCHEMA_MV_ATTRIBUTE
Constant used to get questions and answers stored in a single, multi-valued attribute from the Logical Attribute handler. |
static java.lang.String |
SCHEMA_SEPARATE_ATTRIBUTES
Constant used to get each question and each answer when stored separately from the Logical Attribute handler. |
static java.lang.String |
SCHEMA_SIN_ATTRIBUTES
Constant used to get a question and answer pair stored in a single attribute from the Logical Attribute handler. |
static java.lang.String |
VALIDATE
Constant used to get a user property whose value is protected from the Logical Attribute handler. |
static java.lang.String |
VERIFY_ANSWER
Constant used to get the answer associated with a dynamically selected verification question. |
static java.lang.String |
VERIFY_QUESTION
Constant used to get a verification question, which is dynamically selected at random from a list of challenge questions, |
Constructor Summary | |
---|---|
ForgottenPasswordHandler()
|
Method Summary | |
---|---|
java.lang.String |
decrypt(LogicalAttributeContext attrContext,
java.lang.String in)
Returns a decrypted version of the input string. |
java.lang.String |
encrypt(LogicalAttributeContext attrContext,
java.lang.String in)
Returns an encrypted version of the input string. |
java.util.Vector |
getQuestions(java.util.Hashtable imeProperties)
Gets a list of available questions. |
void |
init(java.util.Hashtable imeProperties)
Analyzes properties specified in the logical attribute configuration file. |
void |
initialize(LogicalAttributeContext attrContext)
Not implemented. |
void |
initializeOptionList(LogicalAttributeContext attrContext)
Sets the logical attribute "Questions" to the list returned by the getQuestions() method. |
void |
toLogical(LogicalAttributeContext attrContext)
Converts physical attributes to logical attributes based on the schema. |
void |
toPhysical(LogicalAttributeContext attrContext)
Collects logical attributes and converts them to physical attributes based on the schema type. |
void |
validate(LogicalAttributeContext attrContext)
Executed during the Profile Modification task. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.netegrity.imapi.LifeCycle |
---|
init, shutdown, startup, uninit |
Methods inherited from interface com.netegrity.imapi.Logger |
---|
logDebugMessage, logErrorMessage, logInfoMessage, logWarningMessage |
Field Detail |
---|
public static final java.lang.String QUESTION_DELIMITER
public static final java.lang.String QUESTION_MARK
public static final java.lang.String ENCRYPTION_KEY
public static final java.lang.String CONTROL_DATA
public static final java.lang.String QUESTION_FILE
public static final java.lang.String QUESTION_BUNDLE
.properties
file in the IdentityMinder.ear\custom
directory from the Logical Attribute handler.
public static final java.lang.String DAYS_BEFORE_REUSE
public static final java.lang.String VALIDATE
public static final java.lang.String QUESTION
public static final java.lang.String ANSWER
public static final java.lang.String QUESTION_ANSWER
public static final java.lang.String MULTIPLE_QUESTIONS
public static final java.lang.String MULTIPLE_ANSWERS
public static final java.lang.String MULTIPLE_QUESTIONS_ANSWERS
public static final java.lang.String VERIFY_QUESTION
public static final java.lang.String VERIFY_ANSWER
public static final java.lang.String SCHEMA
public static final java.lang.String SCHEMA_MV_ATTRIBUTE
public static final java.lang.String SCHEMA_SIN_ATTRIBUTES
public static final java.lang.String SCHEMA_SEPARATE_ATTRIBUTES
Constructor Detail |
---|
public ForgottenPasswordHandler()
Method Detail |
---|
public void init(java.util.Hashtable imeProperties) throws java.lang.Exception
init
in interface LifeCycle
imeProperties
- A hashtable providing configured input values for Forgotten Password task properties.
java.lang.Exception
public java.util.Vector getQuestions(java.util.Hashtable imeProperties) throws java.lang.Exception
Override this method to implement a different way of of retrieving questions for user validation.
imeProperties
- A hashtable providing configured input values for forgotten password task properties.
java.lang.Exception
public void initialize(LogicalAttributeContext attrContext) throws java.lang.Exception
initialize
in class LogicalAttributeAdapter
attrContext
- Logical attribute context information that Identity Manager
passes into the method.
java.lang.Exception
public void initializeOptionList(LogicalAttributeContext attrContext) throws java.lang.Exception
getQuestions()
method.
initializeOptionList
in class LogicalAttributeAdapter
attrContext
- Logical attribute context information that Identity Manager
passes into the method.
java.lang.Exception
public void toPhysical(LogicalAttributeContext attrContext) throws java.lang.Exception
toPhysical
in class LogicalAttributeAdapter
attrContext
- Logical attribute context information that Identity Manager
passes into the method.
java.lang.Exception
public void toLogical(LogicalAttributeContext attrContext) throws java.lang.Exception
toLogical
in class LogicalAttributeAdapter
attrContext
- Logical attribute context information that Identity Manager
passes into the method.
java.lang.Exception
public void validate(LogicalAttributeContext attrContext) throws java.lang.Exception
validate
in class LogicalAttributeAdapter
attrContext
- Logical attribute context information that Identity Manager
passes into the method.
java.lang.Exception
public java.lang.String encrypt(LogicalAttributeContext attrContext, java.lang.String in) throws java.lang.Exception
decrypt
method to implement another encryption application.
attrContext
- Logical attribute context information that Identity Manager
passes into the method.in
- the String to be encrypted
java.lang.Exception
public java.lang.String decrypt(LogicalAttributeContext attrContext, java.lang.String in) throws java.lang.Exception
encrypt
method to implement your own encryption, There is no
encryption by default.
attrContext
- Logical attribute context information that Identity Manager
passes into the method.in
- the String to be decrypted
java.lang.Exception
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |